summaryrefslogtreecommitdiffstats
path: root/tests/ui/moves/move-scalar.rs
blob: 98bfeb1bc054d7e4886d9948dadda637e178b82d (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass
#![allow(unused_mut)]

pub fn main() {

    let y: isize = 42;
    let mut x: isize;
    x = y;
    assert_eq!(x, 42);
}