]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/universal_wrong_bounds.stderr
Rollup merge of #98441 - calebzulawski:simd_as, r=oli-obk
[rust.git] / src / test / ui / impl-trait / universal_wrong_bounds.stderr
1 error[E0404]: expected trait, found derive macro `Debug`
2   --> $DIR/universal_wrong_bounds.rs:9:24
3    |
4 LL | fn wants_debug(g: impl Debug) { }
5    |                        ^^^^^ not a trait
6    |
7 help: consider importing this trait instead
8    |
9 LL | use std::fmt::Debug;
10    |
11
12 error[E0404]: expected trait, found derive macro `Debug`
13   --> $DIR/universal_wrong_bounds.rs:10:26
14    |
15 LL | fn wants_display(g: impl Debug) { }
16    |                          ^^^^^ not a trait
17    |
18 help: consider importing this trait instead
19    |
20 LL | use std::fmt::Debug;
21    |
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0404`.