aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/box_syntax_feature_gate.rs
blob: 62e7c10aa99a051d5118893907f79371afd797ba (plain)
1
2
3
4
5
6
7
8
// { dg-options "-frust-compile-until=lowering" }
#![feature(lang_items)]
#[lang = "owned_box"]
pub struct Box<T>;

fn main() {
    let x: Box<_> = box 1; //{ dg-error "box expression syntax is experimental." "" { target *-*-* }  }
}