mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-21 12:42:39 +00:00
13 lines
197 B
Rust
13 lines
197 B
Rust
#![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
|
|
}
|