about summary refs log tree commit diff
path: root/tests/ui/binding/let-assignability.rs
blob: dab71253364ee8c20c374a8e4f12792197bce26b (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();
}