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