summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-simple.rs
blob: fff1b47f53fd67f40b08173376b3c9183ec87fb2 (plain)
1
2
3
4
5
6
7
// run-pass
pub fn main() {
    let mut x: isize = 3;
    let y: &mut isize = &mut x;
    *y = 5;
    println!("{}", *y);
}