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