rust/tests/ui/escape_analysis.stderr

57 lines
1.3 KiB
Plaintext
Raw Normal View History

error: local variable doesn't need to be boxed here
--> $DIR/escape_analysis.rs:33:9
|
2017-02-08 07:58:07 -06:00
33 | let x = box A;
| ^
|
note: lint level defined here
--> $DIR/escape_analysis.rs:5:9
|
5 | #![deny(boxed_local)]
| ^^^^^^^^^^^
error: local variable doesn't need to be boxed here
--> $DIR/escape_analysis.rs:37:13
|
2017-02-08 07:58:07 -06:00
37 | fn warn_arg(x: Box<A>) {
| ^
error: local variable doesn't need to be boxed here
--> $DIR/escape_analysis.rs:49:9
|
2017-02-08 07:58:07 -06:00
49 | let y = x;
| ^
error: local variable doesn't need to be boxed here
--> $DIR/escape_analysis.rs:54:9
|
2017-02-08 07:58:07 -06:00
54 | let bz = box A;
| ^^
error: local variable doesn't need to be boxed here
--> $DIR/escape_analysis.rs:58:9
|
2017-02-08 07:58:07 -06:00
58 | let bz = box A;
| ^^
error: local variable doesn't need to be boxed here
--> $DIR/escape_analysis.rs:88:9
|
2017-02-08 07:58:07 -06:00
88 | let x = box A;
| ^
error: local variable doesn't need to be boxed here
--> $DIR/escape_analysis.rs:101:9
|
2017-02-08 07:58:07 -06:00
101 | let x = box A;
| ^
error: local variable doesn't need to be boxed here
--> $DIR/escape_analysis.rs:130:12
|
2017-02-08 07:58:07 -06:00
130 | pub fn new(_needs_name: Box<PeekableSeekable<&()>>) -> () {
| ^^^^^^^^^^^
error: aborting due to 8 previous errors