]> git.lizzy.rs Git - rust.git/blob - src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.stderr
Rollup merge of #96684 - tmiasko:mir-downcast, r=petrochenkov
[rust.git] / src / test / ui / trait-bounds / shadowed-path-in-trait-bound-suggestion.stderr
1 error[E0405]: cannot find trait `Trait` in `A`
2   --> $DIR/shadowed-path-in-trait-bound-suggestion.rs:9:24
3    |
4 LL |     pub struct A<H: A::Trait>(pub H);
5    |                        ^^^^^ not found in `A`
6    |
7 help: consider importing this trait
8    |
9 LL |     use A::Trait;
10    |
11 help: if you import `Trait`, refer to it directly
12    |
13 LL -     pub struct A<H: A::Trait>(pub H);
14 LL +     pub struct A<H: Trait>(pub H);
15    | 
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0405`.