1 // aux-build:extern-crate.rs
2 extern crate extern_crate;
4 impl extern_crate::StructWithAttr {}
5 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
7 impl extern_crate::StructNoAttr {}
8 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
10 impl extern_crate::EnumWithAttr {}
11 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
13 impl extern_crate::EnumNoAttr {}
14 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
16 impl f32 {} //~ ERROR cannot define inherent `impl` for primitive types