]>
Commit | Line | Data |
---|---|---|
94222f64 XL |
1 | // run-rustfix |
2 | ||
3 | trait Trait { | |
4 | const FOO: usize; | |
5 | ||
6 | type Target; | |
7 | } | |
8 | ||
9 | struct S; | |
10 | ||
11 | impl Trait for S { | |
12 | const FOO: usize = 0; | |
13 | type Target = (); | |
14 | } | |
15 | ||
16 | fn main() { | |
17 | let _: <S as Trait>::Target; //~ ERROR cannot find associated type `Output` in trait `Trait` | |
18 | //~^ HELP maybe you meant this associated type | |
19 | ||
20 | let _ = <S as Trait>::FOO; //~ ERROR cannot find method or associated constant `BAR` in trait `Trait` | |
21 | //~^ HELP maybe you meant this associated constant | |
22 | } |