fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.4 KiB81 linesraw
1error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
2  --> $DIR/needs-has-incoherent-impls.rs:5:1
3   |
4LL | impl extern_crate::StructWithAttr {
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = help: consider moving this inherent impl into the crate defining the type if possible
8help: alternatively add `#[rustc_allow_incoherent_impl]` to the relevant impl items
9  --> $DIR/needs-has-incoherent-impls.rs:7:5
10   |
11LL |     fn foo() {}
12   |     ^^^^^^^^
13
14error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
15  --> $DIR/needs-has-incoherent-impls.rs:13:1
16   |
17LL | impl extern_crate::StructNoAttr {
18   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19   |
20   = help: consider moving this inherent impl into the crate defining the type if possible
21help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
22  --> $DIR/needs-has-incoherent-impls.rs:13:1
23   |
24LL | impl extern_crate::StructNoAttr {
25   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
28  --> $DIR/needs-has-incoherent-impls.rs:17:1
29   |
30LL | impl extern_crate::StructNoAttr {
31   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32   |
33   = help: consider moving this inherent impl into the crate defining the type if possible
34help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
35  --> $DIR/needs-has-incoherent-impls.rs:17:1
36   |
37LL | impl extern_crate::StructNoAttr {
38   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39
40error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
41  --> $DIR/needs-has-incoherent-impls.rs:22:1
42   |
43LL | impl extern_crate::EnumWithAttr {
44   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45   |
46   = help: consider moving this inherent impl into the crate defining the type if possible
47help: alternatively add `#[rustc_allow_incoherent_impl]` to the relevant impl items
48  --> $DIR/needs-has-incoherent-impls.rs:24:5
49   |
50LL |     fn foo() {}
51   |     ^^^^^^^^
52
53error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
54  --> $DIR/needs-has-incoherent-impls.rs:30:1
55   |
56LL | impl extern_crate::EnumNoAttr {
57   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58   |
59   = help: consider moving this inherent impl into the crate defining the type if possible
60help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
61  --> $DIR/needs-has-incoherent-impls.rs:30:1
62   |
63LL | impl extern_crate::EnumNoAttr {
64   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65
66error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
67  --> $DIR/needs-has-incoherent-impls.rs:34:1
68   |
69LL | impl extern_crate::EnumNoAttr {
70   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71   |
72   = help: consider moving this inherent impl into the crate defining the type if possible
73help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
74  --> $DIR/needs-has-incoherent-impls.rs:34:1
75   |
76LL | impl extern_crate::EnumNoAttr {
77   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78
79error: aborting due to 6 previous errors
80
81For more information about this error, try `rustc --explain E0390`.