mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
21 lines
536 B
Plaintext
21 lines
536 B
Plaintext
error: type uses owned (Box type) pointers: Box<isize>
|
|
--> $DIR/lint-owned-heap-memory.rs:6:5
|
|
|
|
|
LL | x: Box<isize>
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/lint-owned-heap-memory.rs:2:11
|
|
|
|
|
LL | #![forbid(box_pointers)]
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: type uses owned (Box type) pointers: Box<isize>
|
|
--> $DIR/lint-owned-heap-memory.rs:10:29
|
|
|
|
|
LL | let _x: Foo = Foo { x : Box::new(10) };
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|