2022-05-05 02:37:50 -05:00
|
|
|
//@ aux-build:extern-crate.rs
|
|
|
|
extern crate extern_crate;
|
|
|
|
|
2022-05-05 07:29:24 -05:00
|
|
|
impl extern_crate::StructWithAttr {}
|
|
|
|
//~^ ERROR cannot define inherent `impl` for a type outside of the crate
|
2022-05-05 02:37:50 -05:00
|
|
|
|
2022-05-05 07:29:24 -05:00
|
|
|
impl extern_crate::StructNoAttr {}
|
|
|
|
//~^ ERROR cannot define inherent `impl` for a type outside of the crate
|
2022-05-05 02:37:50 -05:00
|
|
|
|
2022-05-05 07:29:24 -05:00
|
|
|
impl extern_crate::EnumWithAttr {}
|
|
|
|
//~^ ERROR cannot define inherent `impl` for a type outside of the crate
|
2022-05-05 02:37:50 -05:00
|
|
|
|
2022-05-05 07:29:24 -05:00
|
|
|
impl extern_crate::EnumNoAttr {}
|
|
|
|
//~^ ERROR cannot define inherent `impl` for a type outside of the crate
|
2022-05-05 02:37:50 -05:00
|
|
|
|
2022-05-05 07:29:24 -05:00
|
|
|
impl f32 {} //~ ERROR cannot define inherent `impl` for primitive types
|
2022-05-05 02:37:50 -05:00
|
|
|
|
|
|
|
fn main() {}
|