| 1 |
--- |
| 2 |
source: codespan-reporting/tests/term.rs |
| 3 |
expression: TEST_DATA.emit_color(&config) |
| 4 |
--- |
| 5 |
{fg:Red bold bright}error[E0666]{bold bright}: nested `impl Trait` is not allowed{/} |
| 6 |
{fg:Blue}┌─{/} nested_impl_trait.rs:5:56 |
| 7 |
{fg:Blue}│{/} |
| 8 |
{fg:Blue}5{/} {fg:Blue}│{/} fn bad_in_ret_position(x: impl Into<u32>) -> impl Into<{fg:Red}impl Debug{/}> { x } |
| 9 |
{fg:Blue}│{/} {fg:Blue}----------{fg:Red}^^^^^^^^^^{fg:Blue}-{/} |
| 10 |
{fg:Blue}│{/} {fg:Blue}│{/} {fg:Red}│{/} |
| 11 |
{fg:Blue}│{/} {fg:Blue}│{/} {fg:Red}nested `impl Trait` here{/} |
| 12 |
{fg:Blue}│{/} {fg:Blue}outer `impl Trait`{/} |
| 13 |
|
| 14 |
{fg:Red bold bright}error[E0121]{bold bright}: the type placeholder `_` is not allowed within types on item signatures{/} |
| 15 |
{fg:Blue}┌─{/} typeck_type_placeholder_item.rs:1:18 |
| 16 |
{fg:Blue}│{/} |
| 17 |
{fg:Blue}1{/} {fg:Blue}│{/} fn fn_test1() -> {fg:Red}_{/} { 5 } |
| 18 |
{fg:Blue}│{/} {fg:Red}^{/} |
| 19 |
{fg:Blue}│{/} {fg:Red}│{/} |
| 20 |
{fg:Blue}│{/} {fg:Red}not allowed in type signatures{/} |
| 21 |
{fg:Blue}│{/} {fg:Blue}help: replace with the correct return type: `i32`{/} |
| 22 |
|
| 23 |
{fg:Red bold bright}error[E0121]{bold bright}: the type placeholder `_` is not allowed within types on item signatures{/} |
| 24 |
{fg:Blue}┌─{/} typeck_type_placeholder_item.rs:2:25 |
| 25 |
{fg:Blue}│{/} |
| 26 |
{fg:Blue}2{/} {fg:Blue}│{/} fn fn_test2(x: i32) -> ({fg:Red}_{/}, {fg:Red}_{/}) { (x, x) } |
| 27 |
{fg:Blue}│{/} {fg:Blue}-{fg:Red}^{fg:Blue}--{fg:Red}^{fg:Blue}-{/} |
| 28 |
{fg:Blue}│{/} {fg:Blue}│{/}{fg:Red}│{/} {fg:Red}│{/} |
| 29 |
{fg:Blue}│{/} {fg:Blue}│{/}{fg:Red}│{/} {fg:Red}not allowed in type signatures{/} |
| 30 |
{fg:Blue}│{/} {fg:Blue}│{/}{fg:Red}not allowed in type signatures{/} |
| 31 |
{fg:Blue}│{/} {fg:Blue}help: replace with the correct return type: `(i32, i32)`{/} |
| 32 |
|
| 33 |
{fg:Red bold bright}error[E0277]{bold bright}: `std::rc::Rc<()>` cannot be sent between threads safely{/} |
| 34 |
{fg:Blue}┌─{/} no_send_res_ports.rs:25:5 |
| 35 |
{fg:Blue}│{/} |
| 36 |
{fg:Blue}25{/} {fg:Blue}│{/} {fg:Red}thread::spawn{/}(move|| { |
| 37 |
{fg:Blue}│{/} {fg:Red}^^^^^^^^^^^^^{/} {fg:Red}`std::rc::Rc<()>` cannot be sent between threads safely{/} |
| 38 |
{fg:Blue}│{/} {fg:Blue}╭{/}{fg:Blue}───────────────────'{/} |
| 39 |
{fg:Blue}26{/} {fg:Blue}│{/} {fg:Blue}│{/} let y = x; |
| 40 |
{fg:Blue}27{/} {fg:Blue}│{/} {fg:Blue}│{/} println!("{:?}", y); |
| 41 |
{fg:Blue}28{/} {fg:Blue}│{/} {fg:Blue}│{/} }); |
| 42 |
{fg:Blue}│{/} {fg:Blue}╰{/}{fg:Blue}──────' within this `[closure@no_send_res_ports.rs:29:19: 33:6 x:main::Foo]`{/} |
| 43 |
{fg:Blue}│{/} |
| 44 |
{fg:Blue}┌─{/} libstd/thread/mod.rs:5:8 |
| 45 |
{fg:Blue}│{/} |
| 46 |
{fg:Blue} 5{/} {fg:Blue}│{/} F: Send + 'static, |
| 47 |
{fg:Blue}│{/} {fg:Blue}----{/} {fg:Blue}required by this bound in `std::thread::spawn`{/} |
| 48 |
{fg:Blue}│{/} |
| 49 |
{fg:Blue}={/} 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<()>` |
| 50 |
{fg:Blue}={/} note: required because it appears within the type `Port<()>` |
| 51 |
{fg:Blue}={/} note: required because it appears within the type `main::Foo` |
| 52 |
{fg:Blue}={/} note: required because it appears within the type `[closure@no_send_res_ports.rs:29:19: 33:6 x:main::Foo]` |
| 53 |
|
| 54 |
{fg:Red bold bright}error{bold bright}: aborting due 5 previous errors{/} |
| 55 |
{fg:Blue}={/} Some errors have detailed explanations: E0121, E0277, E0666. |
| 56 |
{fg:Blue}={/} For more information about an error, try `rustc --explain E0121`. |
| 57 |
|
| 58 |
|