]> git.lizzy.rs Git - rust.git/blob - src/test/ui/incoherent-inherent-impls/no-attr-empty-impl.rs
Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup
[rust.git] / src / test / ui / incoherent-inherent-impls / no-attr-empty-impl.rs
1 // aux-build:extern-crate.rs
2 extern crate extern_crate;
3
4 impl extern_crate::StructWithAttr {}
5 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
6
7 impl extern_crate::StructNoAttr {}
8 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
9
10 impl extern_crate::EnumWithAttr {}
11 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
12
13 impl extern_crate::EnumNoAttr {}
14 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
15
16 impl f32 {} //~ ERROR cannot define inherent `impl` for primitive types
17
18 fn main() {}