Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 223 Bytes
// 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);
}
}
You can’t perform that action at this time.