☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
box_syntax_feature_gate.rs
☽
☼
gcc/testsuite/rust/compile/box_syntax_feature_gate.rs
code
plain
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
}