@@ -4,31 +4,35 @@ error[E0116]: cannot define inherent `impl` for a type outside of the crate wher
44LL | impl extern_crate::StructWithAttr {}
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate
66 |
7- = note: define and implement a trait or new type instead
7+ = help: consider defining a trait and implementing it for the type or using a newtype wrapper like `struct MyType(ExternalType);` and implement it
8+ = note: For more details about orphan rules, see <https://doc.rust-lang.org/reference/items/implementations.html?highlight=orphan#orphan-rules>
89
910error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
1011 --> $DIR/no-attr-empty-impl.rs:7:1
1112 |
1213LL | impl extern_crate::StructNoAttr {}
1314 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate
1415 |
15- = note: define and implement a trait or new type instead
16+ = help: consider defining a trait and implementing it for the type or using a newtype wrapper like `struct MyType(ExternalType);` and implement it
17+ = note: For more details about orphan rules, see <https://doc.rust-lang.org/reference/items/implementations.html?highlight=orphan#orphan-rules>
1618
1719error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
1820 --> $DIR/no-attr-empty-impl.rs:10:1
1921 |
2022LL | impl extern_crate::EnumWithAttr {}
2123 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate
2224 |
23- = note: define and implement a trait or new type instead
25+ = help: consider defining a trait and implementing it for the type or using a newtype wrapper like `struct MyType(ExternalType);` and implement it
26+ = note: For more details about orphan rules, see <https://doc.rust-lang.org/reference/items/implementations.html?highlight=orphan#orphan-rules>
2427
2528error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
2629 --> $DIR/no-attr-empty-impl.rs:13:1
2730 |
2831LL | impl extern_crate::EnumNoAttr {}
2932 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate
3033 |
31- = note: define and implement a trait or new type instead
34+ = help: consider defining a trait and implementing it for the type or using a newtype wrapper like `struct MyType(ExternalType);` and implement it
35+ = note: For more details about orphan rules, see <https://doc.rust-lang.org/reference/items/implementations.html?highlight=orphan#orphan-rules>
3236
3337error[E0390]: cannot define inherent `impl` for primitive types
3438 --> $DIR/no-attr-empty-impl.rs:16:1
0 commit comments