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