about summary refs log tree commit diff
path: root/tests/ui/parser/removed-syntax/removed-syntax-box.rs
blob: b77880e37553fdb1c8c8c09bd443737cb5535e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ run-rustfix

fn main() {
    #[allow(dead_code)]
    struct T {
        a: u8,
        b: u8,
    }
    let _ = box (); //~ ERROR `box_syntax` has been removed
    let _ = box 1; //~ ERROR `box_syntax` has been removed
    let _ = box T { a: 12, b: 18 }; //~ ERROR `box_syntax` has been removed
    let _ = box [5; 30]; //~ ERROR `box_syntax` has been removed
    let _: Box<()> = box (); //~ ERROR `box_syntax` has been removed
}