blob: af47d5c072005b814f25907957830f45cdfe1f33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#![allow(dead_code)]
#![forbid(box_pointers)]
struct Foo {
x: Box<isize> //~ ERROR type uses owned
}
fn main() {
let _x: Foo = Foo { x : Box::new(10) };
//~^ ERROR type uses owned
}
|