2022-05-05 02:37:50 -05:00
|
|
|
error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
|
|
|
|
--> $DIR/no-attr-empty-impl.rs:4:1
|
|
|
|
|
|
|
|
|
LL | impl extern_crate::StructWithAttr {}
|
2023-02-11 17:17:38 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
|
2022-05-05 02:37:50 -05:00
|
|
|
|
|
|
|
|
= note: define and implement a trait or new type instead
|
|
|
|
|
|
|
|
error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
|
2022-05-05 07:29:24 -05:00
|
|
|
--> $DIR/no-attr-empty-impl.rs:7:1
|
2022-05-05 02:37:50 -05:00
|
|
|
|
|
|
|
|
LL | impl extern_crate::StructNoAttr {}
|
2023-02-11 17:17:38 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
|
2022-05-05 02:37:50 -05:00
|
|
|
|
|
|
|
|
= note: define and implement a trait or new type instead
|
|
|
|
|
|
|
|
error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
|
2022-05-05 07:29:24 -05:00
|
|
|
--> $DIR/no-attr-empty-impl.rs:10:1
|
2022-05-05 02:37:50 -05:00
|
|
|
|
|
|
|
|
LL | impl extern_crate::EnumWithAttr {}
|
2023-02-11 17:17:38 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
|
2022-05-05 02:37:50 -05:00
|
|
|
|
|
|
|
|
= note: define and implement a trait or new type instead
|
|
|
|
|
|
|
|
error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
|
2022-05-05 07:29:24 -05:00
|
|
|
--> $DIR/no-attr-empty-impl.rs:13:1
|
2022-05-05 02:37:50 -05:00
|
|
|
|
|
|
|
|
LL | impl extern_crate::EnumNoAttr {}
|
2023-02-11 17:17:38 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
|
2022-05-05 02:37:50 -05:00
|
|
|
|
|
|
|
|
= note: define and implement a trait or new type instead
|
|
|
|
|
|
|
|
error[E0390]: cannot define inherent `impl` for primitive types
|
2023-02-11 17:17:38 -06:00
|
|
|
--> $DIR/no-attr-empty-impl.rs:16:1
|
2022-05-05 02:37:50 -05:00
|
|
|
|
|
|
|
|
LL | impl f32 {}
|
2023-02-11 17:17:38 -06:00
|
|
|
| ^^^^^^^^
|
2022-05-05 02:37:50 -05:00
|
|
|
|
|
|
|
|
= help: consider using an extension trait instead
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
|
|
|
Some errors have detailed explanations: E0116, E0390.
|
|
|
|
For more information about an error, try `rustc --explain E0116`.
|