summaryrefslogtreecommitdiffstats
path: root/src/test/ui/incoherent-inherent-impls/no-attr-empty-impl.rs
blob: 62c249e58822bc5f87bba23306a29250ee8d6b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// aux-build:extern-crate.rs
extern crate extern_crate;

impl extern_crate::StructWithAttr {}
//~^ ERROR cannot define inherent `impl` for a type outside of the crate

impl extern_crate::StructNoAttr {}
//~^ ERROR cannot define inherent `impl` for a type outside of the crate

impl extern_crate::EnumWithAttr {}
//~^ ERROR cannot define inherent `impl` for a type outside of the crate

impl extern_crate::EnumNoAttr {}
//~^ ERROR cannot define inherent `impl` for a type outside of the crate

impl f32 {} //~ ERROR cannot define inherent `impl` for primitive types

fn main() {}