mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-19 11:07:32 +00:00
147 lines
4.8 KiB
Plaintext
147 lines
4.8 KiB
Plaintext
![]() |
|
||
|
running 13 tests
|
||
|
test $DIR/dead-code-items.rs - A (line 32) - compile ... ok
|
||
|
test $DIR/dead-code-items.rs - A (line 88) - compile ... ok
|
||
|
test $DIR/dead-code-items.rs - A::field (line 39) - compile ... FAILED
|
||
|
test $DIR/dead-code-items.rs - A::method (line 94) - compile ... ok
|
||
|
test $DIR/dead-code-items.rs - C (line 22) - compile ... FAILED
|
||
|
test $DIR/dead-code-items.rs - Enum (line 70) - compile ... FAILED
|
||
|
test $DIR/dead-code-items.rs - Enum::Variant1 (line 77) - compile ... FAILED
|
||
|
test $DIR/dead-code-items.rs - MyTrait (line 103) - compile ... FAILED
|
||
|
test $DIR/dead-code-items.rs - MyTrait::my_trait_fn (line 110) - compile ... FAILED
|
||
|
test $DIR/dead-code-items.rs - S (line 14) - compile ... ok
|
||
|
test $DIR/dead-code-items.rs - U (line 48) - compile ... ok
|
||
|
test $DIR/dead-code-items.rs - U::field (line 55) - compile ... FAILED
|
||
|
test $DIR/dead-code-items.rs - U::field2 (line 61) - compile ... ok
|
||
|
|
||
|
failures:
|
||
|
|
||
|
---- $DIR/dead-code-items.rs - A::field (line 39) stdout ----
|
||
|
error: trait `DeadCodeInField` is never used
|
||
|
--> $DIR/dead-code-items.rs:40:7
|
||
|
|
|
||
|
LL | trait DeadCodeInField {}
|
||
|
| ^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
note: the lint level is defined here
|
||
|
--> $DIR/dead-code-items.rs:38:9
|
||
|
|
|
||
|
LL | #![deny(dead_code)]
|
||
|
| ^^^^^^^^^
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|
||
|
Couldn't compile the test.
|
||
|
---- $DIR/dead-code-items.rs - C (line 22) stdout ----
|
||
|
error: unused variable: `unused_error`
|
||
|
--> $DIR/dead-code-items.rs:23:5
|
||
|
|
|
||
|
LL | let unused_error = 5;
|
||
|
| ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused_error`
|
||
|
|
|
||
|
note: the lint level is defined here
|
||
|
--> $DIR/dead-code-items.rs:20:9
|
||
|
|
|
||
|
LL | #![deny(warnings)]
|
||
|
| ^^^^^^^^
|
||
|
= note: `#[deny(unused_variables)]` implied by `#[deny(warnings)]`
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|
||
|
Couldn't compile the test.
|
||
|
---- $DIR/dead-code-items.rs - Enum (line 70) stdout ----
|
||
|
error: unused variable: `not_dead_code_but_unused`
|
||
|
--> $DIR/dead-code-items.rs:71:5
|
||
|
|
|
||
|
LL | let not_dead_code_but_unused = 5;
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_not_dead_code_but_unused`
|
||
|
|
|
||
|
note: the lint level is defined here
|
||
|
--> $DIR/dead-code-items.rs:68:9
|
||
|
|
|
||
|
LL | #![deny(warnings)]
|
||
|
| ^^^^^^^^
|
||
|
= note: `#[deny(unused_variables)]` implied by `#[deny(warnings)]`
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|
||
|
Couldn't compile the test.
|
||
|
---- $DIR/dead-code-items.rs - Enum::Variant1 (line 77) stdout ----
|
||
|
error: unused variable: `unused_in_variant`
|
||
|
--> $DIR/dead-code-items.rs:80:17
|
||
|
|
|
||
|
LL | fn main() { let unused_in_variant = 5; }
|
||
|
| ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused_in_variant`
|
||
|
|
|
||
|
note: the lint level is defined here
|
||
|
--> $DIR/dead-code-items.rs:75:9
|
||
|
|
|
||
|
LL | #![deny(warnings)]
|
||
|
| ^^^^^^^^
|
||
|
= note: `#[deny(unused_variables)]` implied by `#[deny(warnings)]`
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|
||
|
Couldn't compile the test.
|
||
|
---- $DIR/dead-code-items.rs - MyTrait (line 103) stdout ----
|
||
|
error: trait `StillDeadCodeAtMyTrait` is never used
|
||
|
--> $DIR/dead-code-items.rs:104:7
|
||
|
|
|
||
|
LL | trait StillDeadCodeAtMyTrait { }
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
note: the lint level is defined here
|
||
|
--> $DIR/dead-code-items.rs:102:9
|
||
|
|
|
||
|
LL | #![deny(dead_code)]
|
||
|
| ^^^^^^^^^
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|
||
|
Couldn't compile the test.
|
||
|
---- $DIR/dead-code-items.rs - MyTrait::my_trait_fn (line 110) stdout ----
|
||
|
error: unused variable: `unused_in_impl`
|
||
|
--> $DIR/dead-code-items.rs:113:17
|
||
|
|
|
||
|
LL | fn main() { let unused_in_impl = 5; }
|
||
|
| ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused_in_impl`
|
||
|
|
|
||
|
note: the lint level is defined here
|
||
|
--> $DIR/dead-code-items.rs:108:9
|
||
|
|
|
||
|
LL | #![deny(warnings)]
|
||
|
| ^^^^^^^^
|
||
|
= note: `#[deny(unused_variables)]` implied by `#[deny(warnings)]`
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|
||
|
Couldn't compile the test.
|
||
|
---- $DIR/dead-code-items.rs - U::field (line 55) stdout ----
|
||
|
error: trait `DeadCodeInUnionField` is never used
|
||
|
--> $DIR/dead-code-items.rs:56:7
|
||
|
|
|
||
|
LL | trait DeadCodeInUnionField {}
|
||
|
| ^^^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
note: the lint level is defined here
|
||
|
--> $DIR/dead-code-items.rs:54:9
|
||
|
|
|
||
|
LL | #![deny(dead_code)]
|
||
|
| ^^^^^^^^^
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|
||
|
Couldn't compile the test.
|
||
|
|
||
|
failures:
|
||
|
$DIR/dead-code-items.rs - A::field (line 39)
|
||
|
$DIR/dead-code-items.rs - C (line 22)
|
||
|
$DIR/dead-code-items.rs - Enum (line 70)
|
||
|
$DIR/dead-code-items.rs - Enum::Variant1 (line 77)
|
||
|
$DIR/dead-code-items.rs - MyTrait (line 103)
|
||
|
$DIR/dead-code-items.rs - MyTrait::my_trait_fn (line 110)
|
||
|
$DIR/dead-code-items.rs - U::field (line 55)
|
||
|
|
||
|
test result: FAILED. 6 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||
|
|