Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
feature-gates
/
feature-gate-box_syntax.rs
blob: 778660cc0b54991d1b456e33f18095a108f091d3 [
file
] [
log
] [
blame
]
// Test that the use of the box syntax is gated by `box_syntax` feature gate.
fn
main
()
{
let
x
=
box
3
;
//~^ ERROR box expression syntax is experimental; you can call `Box::new` instead
}