]> git.proxmox.com Git - rustc.git/blob - tests/ui/incoherent-inherent-impls/no-attr-empty-impl.stderr
6dc1680cf89f88e9c78ae55ece7748667baaea4a
[rustc.git] / tests / ui / incoherent-inherent-impls / no-attr-empty-impl.stderr
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
3 |
4 LL | impl extern_crate::StructWithAttr {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
6 |
7 = note: define and implement a trait or new type instead
8
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
11 |
12 LL | impl extern_crate::StructNoAttr {}
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
14 |
15 = note: define and implement a trait or new type instead
16
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
19 |
20 LL | impl extern_crate::EnumWithAttr {}
21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
22 |
23 = note: define and implement a trait or new type instead
24
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
27 |
28 LL | impl extern_crate::EnumNoAttr {}
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate.
30 |
31 = note: define and implement a trait or new type instead
32
33 error[E0390]: cannot define inherent `impl` for primitive types
34 --> $DIR/no-attr-empty-impl.rs:16:1
35 |
36 LL | impl f32 {}
37 | ^^^^^^^^
38 |
39 = help: consider using an extension trait instead
40
41 error: aborting due to 5 previous errors
42
43 Some errors have detailed explanations: E0116, E0390.
44 For more information about an error, try `rustc --explain E0116`.