]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/universal_wrong_bounds.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / impl-trait / universal_wrong_bounds.stderr
1 error[E0405]: cannot find trait `Debug` in this scope
2   --> $DIR/universal_wrong_bounds.rs:19:24
3    |
4 LL | fn wants_debug(g: impl Debug) { } //~ ERROR cannot find
5    |                        ^^^^^ not found in this scope
6 help: possible candidate is found in another module, you can import it into scope
7    |
8 LL | use std::fmt::Debug;
9    |
10
11 error[E0405]: cannot find trait `Debug` in this scope
12   --> $DIR/universal_wrong_bounds.rs:20:26
13    |
14 LL | fn wants_display(g: impl Debug) { } //~ ERROR cannot find
15    |                          ^^^^^ not found in this scope
16 help: possible candidate is found in another module, you can import it into scope
17    |
18 LL | use std::fmt::Debug;
19    |
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0405`.