Sign in
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
box_syntax_feature_gate.rs
blob: 62e7c10aa99a051d5118893907f79371afd797ba [
file
] [
log
] [
blame
]
// { 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 *-*-* } }
}