summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/let-assignability.rs
blob: b85f4a96a6d50d8c774fea6d8655eb51cfc20df4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass

fn f() {
    let a: Box<_> = Box::new(1);
    let b: &isize = &*a;
    println!("{}", b);
}

pub fn main() {
    f();
}