about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2024-01-05 21:54:41 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2024-01-05 21:54:41 +0000
commiteeaea576008f53e259c0f86cdd37f28bed9034a1 (patch)
tree7134160951a50d188b4dcd92880e40b79353c0fe
parent6dfdeab65a5e08efa811e033417bd7aef5d3c1fa (diff)
Rebase fallout.
-rw-r--r--tests/ui/type-alias-impl-trait/nested-in-anon-const.stderr16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ui/type-alias-impl-trait/nested-in-anon-const.stderr b/tests/ui/type-alias-impl-trait/nested-in-anon-const.stderr
index aa0c1076117..d0fe920b35f 100644
--- a/tests/ui/type-alias-impl-trait/nested-in-anon-const.stderr
+++ b/tests/ui/type-alias-impl-trait/nested-in-anon-const.stderr
@@ -1,3 +1,11 @@
+error: unconstrained opaque type
+  --> $DIR/nested-in-anon-const.rs:13:33
+   |
+LL |                     type B<Z> = impl Sized;
+   |                                 ^^^^^^^^^^
+   |
+   = note: `B` must be used in combination with a concrete type within the same item
+
 error[E0308]: mismatched types
   --> $DIR/nested-in-anon-const.rs:12:17
    |
@@ -7,14 +15,6 @@ LL | |
 LL | |                 },
    | |_________________^ expected `usize`, found `()`
 
-error: unconstrained opaque type
-  --> $DIR/nested-in-anon-const.rs:13:33
-   |
-LL |                     type B<Z> = impl Sized;
-   |                                 ^^^^^^^^^^
-   |
-   = note: `B` must be used in combination with a concrete type within the same item
-
 error: aborting due to 2 previous errors
 
 For more information about this error, try `rustc --explain E0308`.