about summary refs log tree commit diff
path: root/tests/ui/layout
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-02-21 19:22:08 +0000
committerMichael Goulet <michael@errs.io>2025-03-03 23:09:42 +0000
commit0baee2432a435fc587d458b7f7d0c19d7c239589 (patch)
tree80b0cb465ea1dd0187cd0a30780a0ed116a84745 /tests/ui/layout
parent9d3d5a7fbb9d28d91e2d19d2b0bf5bc5af5b038c (diff)
downloadrust-0baee2432a435fc587d458b7f7d0c19d7c239589.tar.gz
rust-0baee2432a435fc587d458b7f7d0c19d7c239589.zip
Don't typeck during WF, instead check outside of WF in check_crate
Diffstat (limited to 'tests/ui/layout')
-rw-r--r--tests/ui/layout/issue-84108.stderr18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/ui/layout/issue-84108.stderr b/tests/ui/layout/issue-84108.stderr
index 8ddce285e23..e296abfc3b5 100644
--- a/tests/ui/layout/issue-84108.stderr
+++ b/tests/ui/layout/issue-84108.stderr
@@ -30,6 +30,15 @@ LL | const BAR: (&Path, [u8], usize) = ("hello", [], 42);
    = note: only the last element of a tuple may have a dynamically sized type
 
 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
+  --> $DIR/issue-84108.rs:15:13
+   |
+LL | static BAZ: ([u8], usize) = ([], 0);
+   |             ^^^^^^^^^^^^^ doesn't have a size known at compile-time
+   |
+   = help: the trait `Sized` is not implemented for `[u8]`
+   = note: only the last element of a tuple may have a dynamically sized type
+
+error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
   --> $DIR/issue-84108.rs:9:12
    |
 LL | const BAR: (&Path, [u8], usize) = ("hello", [], 42);
@@ -56,15 +65,6 @@ LL | static BAZ: ([u8], usize) = ([], 0);
    |
    = help: the trait `Sized` is not implemented for `[u8]`
    = note: only the last element of a tuple may have a dynamically sized type
-
-error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
-  --> $DIR/issue-84108.rs:15:13
-   |
-LL | static BAZ: ([u8], usize) = ([], 0);
-   |             ^^^^^^^^^^^^^ doesn't have a size known at compile-time
-   |
-   = help: the trait `Sized` is not implemented for `[u8]`
-   = note: only the last element of a tuple may have a dynamically sized type
    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
 
 error[E0308]: mismatched types