New error format for E0512
This commit is contained in:
parent
c2769285ad
commit
157208b046
2 changed files with 8 additions and 2 deletions
|
|
@ -12,4 +12,5 @@ fn takes_u8(_: u8) {}
|
|||
|
||||
fn main() {
|
||||
unsafe { takes_u8(::std::mem::transmute(0u16)); } //~ ERROR E0512
|
||||
//~| transmuting between 16 bits and 8 bits
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue