]> git.proxmox.com Git - rustc.git/blame - src/test/ui/incoherent-inherent-impls/no-attr-empty-impl.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / incoherent-inherent-impls / no-attr-empty-impl.stderr
CommitLineData
04454e1e
FG
1error[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 |
4LL | 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
9error[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 |
12LL | 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
17error[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 |
20LL | 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
25error[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 |
28LL | 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
33error[E0390]: cannot define inherent `impl` for primitive types
34 --> $DIR/no-attr-empty-impl.rs:16:6
35 |
36LL | impl f32 {}
37 | ^^^
38 |
39 = help: consider using an extension trait instead
40
41error: aborting due to 5 previous errors
42
43Some errors have detailed explanations: E0116, E0390.
44For more information about an error, try `rustc --explain E0116`.