summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/import-in-block.rs
blob: 19703904ece91923cde03c7a0b5321920edd03c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass
// pretty-expanded FIXME #23616

pub fn main() {
    use std::mem::replace;
    let mut x = 5;
    let _ = replace(&mut x, 6);
    {
        use std::mem::*;
        let mut y = 6;
        swap(&mut x, &mut y);
    }
}