summaryrefslogtreecommitdiffstats
path: root/tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:50 +0000
commit2e00214b3efbdfeefaa0fe9e8b8fd519de7adc35 (patch)
treed325add32978dbdc1db975a438b3a77d571b1ab8 /tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr
parentReleasing progress-linux version 1.68.2+dfsg1-1~progress7.99u1. (diff)
downloadrustc-2e00214b3efbdfeefaa0fe9e8b8fd519de7adc35.tar.xz
rustc-2e00214b3efbdfeefaa0fe9e8b8fd519de7adc35.zip
Merging upstream version 1.69.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr')
-rw-r--r--tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr78
1 files changed, 22 insertions, 56 deletions
diff --git a/tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr b/tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr
index 8f7082511..f5900afe2 100644
--- a/tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr
+++ b/tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr
@@ -1,114 +1,80 @@
error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
--> $DIR/needs-has-incoherent-impls.rs:5:1
|
-LL | / impl extern_crate::StructWithAttr {
-LL | |
-LL | | fn foo() {}
-LL | | }
- | |_^
+LL | impl extern_crate::StructWithAttr {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider moving this inherent impl into the crate defining the type if possible
help: alternatively add `#[rustc_allow_incoherent_impl]` to the relevant impl items
--> $DIR/needs-has-incoherent-impls.rs:7:5
|
LL | fn foo() {}
- | ^^^^^^^^^^^
+ | ^^^^^^^^
error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
--> $DIR/needs-has-incoherent-impls.rs:13:1
|
-LL | / impl extern_crate::StructNoAttr {
-LL | |
-LL | | fn foo() {}
-LL | | }
- | |_^
+LL | impl extern_crate::StructNoAttr {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider moving this inherent impl into the crate defining the type if possible
help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
--> $DIR/needs-has-incoherent-impls.rs:13:1
|
-LL | / impl extern_crate::StructNoAttr {
-LL | |
-LL | | fn foo() {}
-LL | | }
- | |_^
+LL | impl extern_crate::StructNoAttr {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
--> $DIR/needs-has-incoherent-impls.rs:17:1
|
-LL | / impl extern_crate::StructNoAttr {
-LL | |
-LL | | #[rustc_allow_incoherent_impl]
-LL | | fn bar() {}
-LL | | }
- | |_^
+LL | impl extern_crate::StructNoAttr {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider moving this inherent impl into the crate defining the type if possible
help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
--> $DIR/needs-has-incoherent-impls.rs:17:1
|
-LL | / impl extern_crate::StructNoAttr {
-LL | |
-LL | | #[rustc_allow_incoherent_impl]
-LL | | fn bar() {}
-LL | | }
- | |_^
+LL | impl extern_crate::StructNoAttr {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
--> $DIR/needs-has-incoherent-impls.rs:22:1
|
-LL | / impl extern_crate::EnumWithAttr {
-LL | |
-LL | | fn foo() {}
-LL | | }
- | |_^
+LL | impl extern_crate::EnumWithAttr {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider moving this inherent impl into the crate defining the type if possible
help: alternatively add `#[rustc_allow_incoherent_impl]` to the relevant impl items
--> $DIR/needs-has-incoherent-impls.rs:24:5
|
LL | fn foo() {}
- | ^^^^^^^^^^^
+ | ^^^^^^^^
error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
--> $DIR/needs-has-incoherent-impls.rs:30:1
|
-LL | / impl extern_crate::EnumNoAttr {
-LL | |
-LL | | fn foo() {}
-LL | | }
- | |_^
+LL | impl extern_crate::EnumNoAttr {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider moving this inherent impl into the crate defining the type if possible
help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
--> $DIR/needs-has-incoherent-impls.rs:30:1
|
-LL | / impl extern_crate::EnumNoAttr {
-LL | |
-LL | | fn foo() {}
-LL | | }
- | |_^
+LL | impl extern_crate::EnumNoAttr {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0390]: cannot define inherent `impl` for a type outside of the crate where the type is defined
--> $DIR/needs-has-incoherent-impls.rs:34:1
|
-LL | / impl extern_crate::EnumNoAttr {
-LL | |
-LL | | #[rustc_allow_incoherent_impl]
-LL | | fn bar() {}
-LL | | }
- | |_^
+LL | impl extern_crate::EnumNoAttr {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider moving this inherent impl into the crate defining the type if possible
help: alternatively add `#[rustc_has_incoherent_inherent_impls]` to the type and `#[rustc_allow_incoherent_impl]` to the relevant impl items
--> $DIR/needs-has-incoherent-impls.rs:34:1
|
-LL | / impl extern_crate::EnumNoAttr {
-LL | |
-LL | | #[rustc_allow_incoherent_impl]
-LL | | fn bar() {}
-LL | | }
- | |_^
+LL | impl extern_crate::EnumNoAttr {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 6 previous errors