]> git.lizzy.rs Git - rust.git/blob - tests/ui/escape_analysis.stderr
Merge pull request #1520 from Manishearth/rustup
[rust.git] / tests / ui / escape_analysis.stderr
1 error: local variable doesn't need to be boxed here
2   --> $DIR/escape_analysis.rs:33:9
3    |
4 33 |     let x = box A;
5    |         ^
6    |
7 note: lint level defined here
8   --> $DIR/escape_analysis.rs:5:9
9    |
10 5  | #![deny(boxed_local)]
11    |         ^^^^^^^^^^^
12
13 error: local variable doesn't need to be boxed here
14   --> $DIR/escape_analysis.rs:37:13
15    |
16 37 | fn warn_arg(x: Box<A>) {
17    |             ^
18
19 error: local variable doesn't need to be boxed here
20   --> $DIR/escape_analysis.rs:49:9
21    |
22 49 |     let y = x;
23    |         ^
24
25 error: local variable doesn't need to be boxed here
26   --> $DIR/escape_analysis.rs:54:9
27    |
28 54 |     let bz = box A;
29    |         ^^
30
31 error: local variable doesn't need to be boxed here
32   --> $DIR/escape_analysis.rs:58:9
33    |
34 58 |     let bz = box A;
35    |         ^^
36
37 error: local variable doesn't need to be boxed here
38   --> $DIR/escape_analysis.rs:88:9
39    |
40 88 |     let x = box A;
41    |         ^
42
43 error: local variable doesn't need to be boxed here
44    --> $DIR/escape_analysis.rs:101:9
45     |
46 101 |     let x = box A;
47     |         ^
48
49 error: local variable doesn't need to be boxed here
50    --> $DIR/escape_analysis.rs:130:12
51     |
52 130 | pub fn new(_needs_name: Box<PeekableSeekable<&()>>) -> () {
53     |            ^^^^^^^^^^^
54
55 error: aborting due to 8 previous errors
56