1 error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
2 --> $DIR/no-attr-empty-impl.rs:4:1
4 LL | impl extern_crate::StructWithAttr {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
7 = note: define and implement a trait or new type instead
9 error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
10 --> $DIR/no-attr-empty-impl.rs:7:1
12 LL | impl extern_crate::StructNoAttr {}
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
15 = note: define and implement a trait or new type instead
17 error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
18 --> $DIR/no-attr-empty-impl.rs:10:1
20 LL | impl extern_crate::EnumWithAttr {}
21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
23 = note: define and implement a trait or new type instead
25 error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined
26 --> $DIR/no-attr-empty-impl.rs:13:1
28 LL | impl extern_crate::EnumNoAttr {}
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
31 = note: define and implement a trait or new type instead
33 error[E0390]: cannot define inherent `impl` for primitive types
34 --> $DIR/no-attr-empty-impl.rs:16:6
39 = help: consider using an extension trait instead
41 error: aborting due to 5 previous errors
43 Some errors have detailed explanations: E0116, E0390.
44 For more information about an error, try `rustc --explain E0116`.