]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-24013.rs
Pass cflags rather than cxxflags to LLVM as CMAKE_C_FLAGS
[rust.git] / src / test / 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 }