summary refs log tree commit diff
path: root/src/test/ui/binding/let-assignability.rs
blob: 5bb375d285d38ed258e259763622239f606b464d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
#![feature(box_syntax)]

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

pub fn main() {
    f();
}