summaryrefslogtreecommitdiff
path: root/tests/snapshots/term__overlapping__rich_ascii_no_color.snap
blob: b6002fcfc0a39527cbddcf1c5ff1f97a719fd7f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
source: codespan-reporting/tests/term.rs
expression: TEST_DATA.emit_no_color(&config)
---
error[E0666]: nested `impl Trait` is not allowed
  --> nested_impl_trait.rs:5:56
  |
5 | fn bad_in_ret_position(x: impl Into<u32>) -> impl Into<impl Debug> { x }
  |                                              ----------^^^^^^^^^^-
  |                                              |         |
  |                                              |         nested `impl Trait` here
  |                                              outer `impl Trait`

error[E0121]: the type placeholder `_` is not allowed within types on item signatures
  --> typeck_type_placeholder_item.rs:1:18
  |
1 | fn fn_test1() -> _ { 5 }
  |                  ^
  |                  |
  |                  not allowed in type signatures
  |                  help: replace with the correct return type: `i32`

error[E0121]: the type placeholder `_` is not allowed within types on item signatures
  --> typeck_type_placeholder_item.rs:2:25
  |
2 | fn fn_test2(x: i32) -> (_, _) { (x, x) }
  |                        -^--^-
  |                        ||  |
  |                        ||  not allowed in type signatures
  |                        |not allowed in type signatures
  |                        help: replace with the correct return type: `(i32, i32)`

error[E0277]: `std::rc::Rc<()>` cannot be sent between threads safely
   --> no_send_res_ports.rs:25:5
   |  
25 |       thread::spawn(move|| {
   |       ^^^^^^^^^^^^^ `std::rc::Rc<()>` cannot be sent between threads safely
   | /-------------------'
26 | |         let y = x;
27 | |         println!("{:?}", y);
28 | |     });
   | \------' within this `[closure@no_send_res_ports.rs:29:19: 33:6 x:main::Foo]`
   |  
   --> libstd/thread/mod.rs:5:8
   |
 5 |     F: Send + 'static,
   |        ---- required by this bound in `std::thread::spawn`
   |
   = help: within `[closure@no_send_res_ports.rs:29:19: 33:6 x:main::Foo]`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<()>`
   = note: required because it appears within the type `Port<()>`
   = note: required because it appears within the type `main::Foo`
   = note: required because it appears within the type `[closure@no_send_res_ports.rs:29:19: 33:6 x:main::Foo]`

error: aborting due 5 previous errors
 = Some errors have detailed explanations: E0121, E0277, E0666.
 = For more information about an error, try `rustc --explain E0121`.