about summary refs log tree commit diff
path: root/tests/ui/traits/syntax-trait-polarity.stderr
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2025-07-30 16:33:59 -0500
committerCameron Steffen <cam.steffen94@gmail.com>2025-08-11 16:58:21 -0500
commitfa733909edadf390cde8c36c303bce42d37f7a3b (patch)
treec1dc1c01e6526ba9a752e927b69ad15bdba1c866 /tests/ui/traits/syntax-trait-polarity.stderr
parent39c5d6d1cac012095771902d4782908ae0df4789 (diff)
downloadrust-fa733909edadf390cde8c36c303bce42d37f7a3b.tar.gz
rust-fa733909edadf390cde8c36c303bce42d37f7a3b.zip
Move trait impl modifier errors to parsing
This is a technically a breaking change for what can be parsed in
`#[cfg(false)]`.
Diffstat (limited to 'tests/ui/traits/syntax-trait-polarity.stderr')
-rw-r--r--tests/ui/traits/syntax-trait-polarity.stderr16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ui/traits/syntax-trait-polarity.stderr b/tests/ui/traits/syntax-trait-polarity.stderr
index 1fd40fb6657..a623cdbef3a 100644
--- a/tests/ui/traits/syntax-trait-polarity.stderr
+++ b/tests/ui/traits/syntax-trait-polarity.stderr
@@ -6,6 +6,14 @@ LL | impl !TestType {}
    |      |
    |      negative because of this
 
+error: inherent impls cannot be negative
+  --> $DIR/syntax-trait-polarity.rs:18:10
+   |
+LL | impl<T> !TestType2<T> {}
+   |         -^^^^^^^^^^^^ inherent impl for this type
+   |         |
+   |         negative because of this
+
 error[E0198]: negative impls cannot be unsafe
   --> $DIR/syntax-trait-polarity.rs:12:13
    |
@@ -15,14 +23,6 @@ LL | unsafe impl !Send for TestType {}
    | |           negative because of this
    | unsafe because of this
 
-error: inherent impls cannot be negative
-  --> $DIR/syntax-trait-polarity.rs:18:10
-   |
-LL | impl<T> !TestType2<T> {}
-   |         -^^^^^^^^^^^^ inherent impl for this type
-   |         |
-   |         negative because of this
-
 error[E0198]: negative impls cannot be unsafe
   --> $DIR/syntax-trait-polarity.rs:21:16
    |