rust/src/test/ui/lint/lint-owned-heap-memory.stderr
Vadim Petrochenkov fa72a81bea Update tests
2019-03-11 23:10:26 +03:00

21 lines
540 B
Plaintext

error: type uses owned (Box type) pointers: std::boxed::Box<isize>
--> $DIR/lint-owned-heap-memory.rs:6:5
|
LL | x: Box<isize>
| ^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/lint-owned-heap-memory.rs:2:11
|
LL | #![forbid(box_pointers)]
| ^^^^^^^^^^^^
error: type uses owned (Box type) pointers: std::boxed::Box<isize>
--> $DIR/lint-owned-heap-memory.rs:10:29
|
LL | let _x : Foo = Foo {x : box 10};
| ^^^^^^
error: aborting due to 2 previous errors