]> git.lizzy.rs Git - rust.git/blob - tests/ui/incoherent-inherent-impls/no-attr-empty-impl.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / 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() {}