Sign in
fuchsia
/
third_party
/
rust
/
daafeb35b731a599fc8b6c4cf37b81f838dae319
/
.
/
src
/
test
/
ui
/
lint
/
lint-owned-heap-memory.rs
blob: 7ef18c28c1ab783311f3e3d7f8c7fca8c54b422d [
file
] [
log
] [
blame
]
#![
allow
(
dead_code
)]
#![
forbid
(
box_pointers
)]
#![
feature
(
box_syntax
)]
struct
Foo
{
x
:
Box
<
isize
>
//~ ERROR type uses owned
}
fn
main
()
{
let
_x
:
Foo
=
Foo
{
x
:
box
10
};
//~^ ERROR type uses owned
}