1 // aux-build:extern-crate.rs
2 #![feature(rustc_attrs)]
3 extern crate extern_crate;
5 impl extern_crate::StructWithAttr {
6 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
9 impl extern_crate::StructWithAttr {
10 #[rustc_allow_incoherent_impl]
13 impl extern_crate::StructNoAttr {
14 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
17 impl extern_crate::StructNoAttr {
18 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
19 #[rustc_allow_incoherent_impl]
22 impl extern_crate::EnumWithAttr {
23 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
26 impl extern_crate::EnumWithAttr {
27 #[rustc_allow_incoherent_impl]
30 impl extern_crate::EnumNoAttr {
31 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
34 impl extern_crate::EnumNoAttr {
35 //~^ ERROR cannot define inherent `impl` for a type outside of the crate
36 #[rustc_allow_incoherent_impl]