1 // Regression test for #88472, where a suggestion was issued to
2 // import an inaccessible struct.
4 #![warn(unused_imports)]
5 //~^ NOTE: the lint level is defined here
9 //~^ NOTE: struct `a::Foo` exists but is inaccessible
10 //~| NOTE: not accessible
15 //~^ WARNING: unused import
17 //~^ ERROR: cannot find type `Foo` in this scope [E0412]
18 //~| NOTE: not found in this scope
23 //~^ NOTE: these enums exist but are inaccessible
24 //~| NOTE: `c::Eee`: not accessible
28 //~^ NOTE: `c::d::Eee`: not accessible
34 //~^ ERROR: cannot find type `Eee` in this scope [E0412]
35 //~| NOTE: not found in this scope