]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-24013.rs
Rollup merge of #106752 - sulami:master, r=estebank
[rust.git] / tests / ui / issues / issue-24013.rs
1 fn main() {
2     use std::mem::{transmute, swap};
3     let a = 1;
4     let b = 2;
5     unsafe {swap::<&mut _>(transmute(&a), transmute(&b))};
6     //~^ ERROR type annotations needed
7 }