Rollup merge of #71206 - RalfJung:dont-try, r=oli-obk
Miri error messages: avoid try terminology r? @oli-obk
This commit is contained in:
commit
b2e4d4836f
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue