about summary refs log tree commit diff
path: root/tests/ui/parser/removed-syntax/removed-syntax-box.fixed
blob: 8aec8c4cc435a7683ef93448d81f15b2c4dd961f (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::new(()); //~ ERROR `box_syntax` has been removed
    let _ = Box::new(1); //~ ERROR `box_syntax` has been removed
    let _ = Box::new(T { a: 12, b: 18 }); //~ ERROR `box_syntax` has been removed
    let _ = Box::new([5; 30]); //~ ERROR `box_syntax` has been removed
    let _: Box<()> = Box::new(()); //~ ERROR `box_syntax` has been removed
}