]> git.lizzy.rs Git - rust.git/blob - tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / ui / incoherent-inherent-impls / needs-has-incoherent-impls.stderr
1 error[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    |
4 LL | / impl extern_crate::StructWithAttr {
5 LL | |
6 LL | |     fn foo() {}
7 LL | | }
8    | |_^
9    |
10    = help: consider moving this inherent impl into the crate defining the type if possible
11 help: alternatively add `#[rustc_allow_incoherent_impl]` to the relevant impl items
12   --> $DIR/needs-has-incoherent-impls.rs:7:5
13    |
14 LL |     fn foo() {}
15    |     ^^^^^^^^^^^
16
17 error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
18   --> $DIR/needs-has-incoherent-impls.rs:13:1
19    |
20 LL | / impl extern_crate::StructNoAttr {
21 LL | |
22 LL | |     fn foo() {}
23 LL | | }
24    | |_^
25    |
26    = help: consider moving this inherent impl into the crate defining the type if possible
27 help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
28   --> $DIR/needs-has-incoherent-impls.rs:13:1
29    |
30 LL | / impl extern_crate::StructNoAttr {
31 LL | |
32 LL | |     fn foo() {}
33 LL | | }
34    | |_^
35
36 error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
37   --> $DIR/needs-has-incoherent-impls.rs:17:1
38    |
39 LL | / impl extern_crate::StructNoAttr {
40 LL | |
41 LL | |     #[rustc_allow_incoherent_impl]
42 LL | |     fn bar() {}
43 LL | | }
44    | |_^
45    |
46    = help: consider moving this inherent impl into the crate defining the type if possible
47 help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
48   --> $DIR/needs-has-incoherent-impls.rs:17:1
49    |
50 LL | / impl extern_crate::StructNoAttr {
51 LL | |
52 LL | |     #[rustc_allow_incoherent_impl]
53 LL | |     fn bar() {}
54 LL | | }
55    | |_^
56
57 error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
58   --> $DIR/needs-has-incoherent-impls.rs:22:1
59    |
60 LL | / impl extern_crate::EnumWithAttr {
61 LL | |
62 LL | |     fn foo() {}
63 LL | | }
64    | |_^
65    |
66    = help: consider moving this inherent impl into the crate defining the type if possible
67 help: alternatively add `#[rustc_allow_incoherent_impl]` to the relevant impl items
68   --> $DIR/needs-has-incoherent-impls.rs:24:5
69    |
70 LL |     fn foo() {}
71    |     ^^^^^^^^^^^
72
73 error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
74   --> $DIR/needs-has-incoherent-impls.rs:30:1
75    |
76 LL | / impl extern_crate::EnumNoAttr {
77 LL | |
78 LL | |     fn foo() {}
79 LL | | }
80    | |_^
81    |
82    = help: consider moving this inherent impl into the crate defining the type if possible
83 help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
84   --> $DIR/needs-has-incoherent-impls.rs:30:1
85    |
86 LL | / impl extern_crate::EnumNoAttr {
87 LL | |
88 LL | |     fn foo() {}
89 LL | | }
90    | |_^
91
92 error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
93   --> $DIR/needs-has-incoherent-impls.rs:34:1
94    |
95 LL | / impl extern_crate::EnumNoAttr {
96 LL | |
97 LL | |     #[rustc_allow_incoherent_impl]
98 LL | |     fn bar() {}
99 LL | | }
100    | |_^
101    |
102    = help: consider moving this inherent impl into the crate defining the type if possible
103 help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
104   --> $DIR/needs-has-incoherent-impls.rs:34:1
105    |
106 LL | / impl extern_crate::EnumNoAttr {
107 LL | |
108 LL | |     #[rustc_allow_incoherent_impl]
109 LL | |     fn bar() {}
110 LL | | }
111    | |_^
112
113 error: aborting due to 6 previous errors
114
115 For more information about this error, try `rustc --explain E0390`.