Debian Codegraph @

gcc/testsuite/rust/compile/box_syntax_feature_gate.rs

raw
1 // { dg-options "-frust-compile-until=lowering" }
2 #[lang = "owned_box"]
3 pub struct Box<T>;
4
5 fn main() {
6 let x: Box<_> = box 1; //{ dg-error "box expression syntax is experimental." "" { target *-*-* } }
7 }