summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-owned-heap-memory.stderr
blob: 5ba3969707571acd7dda91698d0a938af5539ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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