about summary refs log tree commit diff
path: root/src/test/ui/consts
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-12-11 12:19:23 +0000
committervarkor <github@varkor.com>2018-12-11 12:19:23 +0000
commit2ba3e66fa6500cacd91535ef2b3235cac0d268d5 (patch)
treeb1ca5632674c6d2dbcd81e6ef1329e6485fe5e5e /src/test/ui/consts
parent573c1ffb78d6b012d565081b8d72a488b7e9bb81 (diff)
downloadrust-2ba3e66fa6500cacd91535ef2b3235cac0d268d5.tar.gz
rust-2ba3e66fa6500cacd91535ef2b3235cac0d268d5.zip
Update tests
Diffstat (limited to 'src/test/ui/consts')
-rw-r--r--src/test/ui/consts/validate_never_arrays.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/consts/validate_never_arrays.stderr b/src/test/ui/consts/validate_never_arrays.stderr
index 0b639240bb3..b9d181a76dd 100644
--- a/src/test/ui/consts/validate_never_arrays.stderr
+++ b/src/test/ui/consts/validate_never_arrays.stderr
@@ -2,7 +2,7 @@ error[E0080]: it is undefined behavior to use this value
   --> $DIR/validate_never_arrays.rs:3:1
    |
 LL | const FOO: &[!; 1] = unsafe { &*(1_usize as *const [!; 1]) }; //~ ERROR undefined behavior
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered a value of an uninhabited type at .<deref>[0]
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered a value of an uninhabited type at .<deref>
    |
    = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rust compiler repository if you believe it should not be considered undefined behavior