diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-17 03:05:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-17 03:05:18 +0200 |
| commit | b2e4d4836f7890fc069d5c62086e1015b9d94ff2 (patch) | |
| tree | b6282f865a689e077dc25539d155a408dcf4b853 /src/test | |
| parent | b347097e4d729345bd7b1b1afdef2bccf904896e (diff) | |
| parent | 250b27d996af6df25065756814188236ef6b0e01 (diff) | |
| download | rust-b2e4d4836f7890fc069d5c62086e1015b9d94ff2.tar.gz rust-b2e4d4836f7890fc069d5c62086e1015b9d94ff2.zip | |
Rollup merge of #71206 - RalfJung:dont-try, r=oli-obk
Miri error messages: avoid try terminology r? @oli-obk
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/consts/transmute-size-mismatch-before-typeck.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/consts/transmute-size-mismatch-before-typeck.stderr b/src/test/ui/consts/transmute-size-mismatch-before-typeck.stderr index 5a477714596..b4970c82adb 100644 --- a/src/test/ui/consts/transmute-size-mismatch-before-typeck.stderr +++ b/src/test/ui/consts/transmute-size-mismatch-before-typeck.stderr @@ -4,7 +4,7 @@ error: any use of this value will cause an error LL | const ZST: &[u8] = unsafe { std::mem::transmute(1usize) }; | ----------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^--- | | - | tried to transmute from usize to &[u8], but their sizes differed + | transmuting `usize` to `&[u8]` is not possible, because these types do not have the same size | = note: `#[deny(const_err)]` on by default |
