rust/src/test/ui/imports/import-in-block.rs
2019-07-27 18:56:16 +03:00

14 lines
223 B
Rust

// run-pass
// pretty-expanded FIXME #23616
pub fn main() {
use std::mem::replace;
let mut x = 5;
replace(&mut x, 6);
{
use std::mem::*;
let mut y = 6;
swap(&mut x, &mut y);
}
}