1 // Make sure associated items are recommended only in appropriate contexts.
17 //~^ ERROR cannot find type `field`
19 //~^ ERROR cannot find tuple struct or tuple variant `field`
21 //~^ ERROR cannot find value `field`
24 //~^ ERROR cannot find type `Type`
26 //~^ ERROR cannot find tuple struct or tuple variant `Type`
28 //~^ ERROR cannot find value `Type`
31 //~^ ERROR cannot find type `method`
33 //~^ ERROR cannot find tuple struct or tuple variant `method`
35 //~^ ERROR cannot find value `method`