diff options
| author | Ralf Jung <post@ralfj.de> | 2018-11-02 10:01:22 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-11-05 09:40:05 +0100 |
| commit | 996a42557e2816cd577120f464c52b865ef8a924 (patch) | |
| tree | 0851fc311c1b222b428be1d4192c60a4192bf920 /src/test | |
| parent | c2677211f65758f19d7051d6f24a34ce0ec44119 (diff) | |
| download | rust-996a42557e2816cd577120f464c52b865ef8a924.tar.gz rust-996a42557e2816cd577120f464c52b865ef8a924.zip | |
the visitor can already load the value for visit_primitive
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/consts/const-eval/ub-ref.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/consts/const-eval/ub-ref.stderr b/src/test/ui/consts/const-eval/ub-ref.stderr index 359d1abb500..c3f5f4a26f5 100644 --- a/src/test/ui/consts/const-eval/ub-ref.stderr +++ b/src/test/ui/consts/const-eval/ub-ref.stderr @@ -26,7 +26,7 @@ error[E0080]: it is undefined behavior to use this value --> $DIR/ub-ref.rs:25:1 | LL | const REF_AS_USIZE_SLICE: &[usize] = &[unsafe { mem::transmute(&0) }]; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ a raw memory access tried to access part of a pointer value as raw bytes + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered a pointer at .<deref>, but expected plain bytes | = 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 |
