]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-item/issue-87638.fixed
Update unsuspicious file list
[rustc.git] / src / test / ui / associated-item / issue-87638.fixed
CommitLineData
94222f64
XL
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}