fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2 3trait Trait { 4 const FOO: usize; 5 6 type Target; 7} 8 9struct S; 10 11impl Trait for S { 12 const FOO: usize = 0; 13 type Target = (); 14} 15 16fn 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}