]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-item/issue-87638.stderr
Rollup merge of #106591 - Ezrashaw:attempted-integer-identifer, r=Estebank
[rust.git] / tests / ui / associated-item / issue-87638.stderr
1 error[E0576]: cannot find associated type `Output` in trait `Trait`
2   --> $DIR/issue-87638.rs:17:26
3    |
4 LL |     type Target;
5    |     ------------ associated type `Target` defined here
6 ...
7 LL |     let _: <S as Trait>::Output;
8    |                          ^^^^^^
9    |                          |
10    |                          not found in `Trait`
11    |                          help: maybe you meant this associated type: `Target`
12
13 error[E0576]: cannot find method or associated constant `BAR` in trait `Trait`
14   --> $DIR/issue-87638.rs:20:27
15    |
16 LL |     const FOO: usize;
17    |     ----------------- associated constant `FOO` defined here
18 ...
19 LL |     let _ = <S as Trait>::BAR;
20    |                           ^^^
21    |                           |
22    |                           not found in `Trait`
23    |                           help: maybe you meant this associated constant: `FOO`
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0576`.