fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
745 B23 linesraw
1error[E0404]: expected trait, found derive macro `Debug`
2  --> $DIR/universal_wrong_bounds.rs:9:24
3   |
4LL | fn wants_debug(g: impl Debug) { }
5   |                        ^^^^^ not a trait
6help: possible better candidate is found in another module, you can import it into scope
7   |
8LL | use std::fmt::Debug;
9   |
10
11error[E0404]: expected trait, found derive macro `Debug`
12  --> $DIR/universal_wrong_bounds.rs:10:26
13   |
14LL | fn wants_display(g: impl Debug) { }
15   |                          ^^^^^ not a trait
16help: possible better candidate is found in another module, you can import it into scope
17   |
18LL | use std::fmt::Debug;
19   |
20
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0404`.