|
| 1 | + |
| 2 | +running 13 tests |
| 3 | +test $DIR/dead-code-items.rs - A (line 32) - compile ... ok |
| 4 | +test $DIR/dead-code-items.rs - A (line 88) - compile ... ok |
| 5 | +test $DIR/dead-code-items.rs - A::field (line 39) - compile ... FAILED |
| 6 | +test $DIR/dead-code-items.rs - A::method (line 94) - compile ... ok |
| 7 | +test $DIR/dead-code-items.rs - C (line 22) - compile ... FAILED |
| 8 | +test $DIR/dead-code-items.rs - Enum (line 70) - compile ... FAILED |
| 9 | +test $DIR/dead-code-items.rs - Enum::Variant1 (line 77) - compile ... FAILED |
| 10 | +test $DIR/dead-code-items.rs - MyTrait (line 103) - compile ... FAILED |
| 11 | +test $DIR/dead-code-items.rs - MyTrait::my_trait_fn (line 110) - compile ... FAILED |
| 12 | +test $DIR/dead-code-items.rs - S (line 14) - compile ... ok |
| 13 | +test $DIR/dead-code-items.rs - U (line 48) - compile ... ok |
| 14 | +test $DIR/dead-code-items.rs - U::field (line 55) - compile ... FAILED |
| 15 | +test $DIR/dead-code-items.rs - U::field2 (line 61) - compile ... ok |
| 16 | + |
| 17 | +failures: |
| 18 | + |
| 19 | +---- $DIR/dead-code-items.rs - A::field (line 39) stdout ---- |
| 20 | +error: trait `DeadCodeInField` is never used |
| 21 | + --> $DIR/dead-code-items.rs:40:7 |
| 22 | + | |
| 23 | +LL | trait DeadCodeInField {} |
| 24 | + | ^^^^^^^^^^^^^^^ |
| 25 | + | |
| 26 | +note: the lint level is defined here |
| 27 | + --> $DIR/dead-code-items.rs:38:9 |
| 28 | + | |
| 29 | +LL | #![deny(dead_code)] |
| 30 | + | ^^^^^^^^^ |
| 31 | + |
| 32 | +error: aborting due to 1 previous error |
| 33 | + |
| 34 | +Couldn't compile the test. |
| 35 | +---- $DIR/dead-code-items.rs - C (line 22) stdout ---- |
| 36 | +error: unused variable: `unused_error` |
| 37 | + --> $DIR/dead-code-items.rs:23:5 |
| 38 | + | |
| 39 | +LL | let unused_error = 5; |
| 40 | + | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused_error` |
| 41 | + | |
| 42 | +note: the lint level is defined here |
| 43 | + --> $DIR/dead-code-items.rs:20:9 |
| 44 | + | |
| 45 | +LL | #![deny(warnings)] |
| 46 | + | ^^^^^^^^ |
| 47 | + = note: `#[deny(unused_variables)]` implied by `#[deny(warnings)]` |
| 48 | + |
| 49 | +error: aborting due to 1 previous error |
| 50 | + |
| 51 | +Couldn't compile the test. |
| 52 | +---- $DIR/dead-code-items.rs - Enum (line 70) stdout ---- |
| 53 | +error: unused variable: `not_dead_code_but_unused` |
| 54 | + --> $DIR/dead-code-items.rs:71:5 |
| 55 | + | |
| 56 | +LL | let not_dead_code_but_unused = 5; |
| 57 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_not_dead_code_but_unused` |
| 58 | + | |
| 59 | +note: the lint level is defined here |
| 60 | + --> $DIR/dead-code-items.rs:68:9 |
| 61 | + | |
| 62 | +LL | #![deny(warnings)] |
| 63 | + | ^^^^^^^^ |
| 64 | + = note: `#[deny(unused_variables)]` implied by `#[deny(warnings)]` |
| 65 | + |
| 66 | +error: aborting due to 1 previous error |
| 67 | + |
| 68 | +Couldn't compile the test. |
| 69 | +---- $DIR/dead-code-items.rs - Enum::Variant1 (line 77) stdout ---- |
| 70 | +error: unused variable: `unused_in_variant` |
| 71 | + --> $DIR/dead-code-items.rs:80:17 |
| 72 | + | |
| 73 | +LL | fn main() { let unused_in_variant = 5; } |
| 74 | + | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused_in_variant` |
| 75 | + | |
| 76 | +note: the lint level is defined here |
| 77 | + --> $DIR/dead-code-items.rs:75:9 |
| 78 | + | |
| 79 | +LL | #![deny(warnings)] |
| 80 | + | ^^^^^^^^ |
| 81 | + = note: `#[deny(unused_variables)]` implied by `#[deny(warnings)]` |
| 82 | + |
| 83 | +error: aborting due to 1 previous error |
| 84 | + |
| 85 | +Couldn't compile the test. |
| 86 | +---- $DIR/dead-code-items.rs - MyTrait (line 103) stdout ---- |
| 87 | +error: trait `StillDeadCodeAtMyTrait` is never used |
| 88 | + --> $DIR/dead-code-items.rs:104:7 |
| 89 | + | |
| 90 | +LL | trait StillDeadCodeAtMyTrait { } |
| 91 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 92 | + | |
| 93 | +note: the lint level is defined here |
| 94 | + --> $DIR/dead-code-items.rs:102:9 |
| 95 | + | |
| 96 | +LL | #![deny(dead_code)] |
| 97 | + | ^^^^^^^^^ |
| 98 | + |
| 99 | +error: aborting due to 1 previous error |
| 100 | + |
| 101 | +Couldn't compile the test. |
| 102 | +---- $DIR/dead-code-items.rs - MyTrait::my_trait_fn (line 110) stdout ---- |
| 103 | +error: unused variable: `unused_in_impl` |
| 104 | + --> $DIR/dead-code-items.rs:113:17 |
| 105 | + | |
| 106 | +LL | fn main() { let unused_in_impl = 5; } |
| 107 | + | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused_in_impl` |
| 108 | + | |
| 109 | +note: the lint level is defined here |
| 110 | + --> $DIR/dead-code-items.rs:108:9 |
| 111 | + | |
| 112 | +LL | #![deny(warnings)] |
| 113 | + | ^^^^^^^^ |
| 114 | + = note: `#[deny(unused_variables)]` implied by `#[deny(warnings)]` |
| 115 | + |
| 116 | +error: aborting due to 1 previous error |
| 117 | + |
| 118 | +Couldn't compile the test. |
| 119 | +---- $DIR/dead-code-items.rs - U::field (line 55) stdout ---- |
| 120 | +error: trait `DeadCodeInUnionField` is never used |
| 121 | + --> $DIR/dead-code-items.rs:56:7 |
| 122 | + | |
| 123 | +LL | trait DeadCodeInUnionField {} |
| 124 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 125 | + | |
| 126 | +note: the lint level is defined here |
| 127 | + --> $DIR/dead-code-items.rs:54:9 |
| 128 | + | |
| 129 | +LL | #![deny(dead_code)] |
| 130 | + | ^^^^^^^^^ |
| 131 | + |
| 132 | +error: aborting due to 1 previous error |
| 133 | + |
| 134 | +Couldn't compile the test. |
| 135 | + |
| 136 | +failures: |
| 137 | + $DIR/dead-code-items.rs - A::field (line 39) |
| 138 | + $DIR/dead-code-items.rs - C (line 22) |
| 139 | + $DIR/dead-code-items.rs - Enum (line 70) |
| 140 | + $DIR/dead-code-items.rs - Enum::Variant1 (line 77) |
| 141 | + $DIR/dead-code-items.rs - MyTrait (line 103) |
| 142 | + $DIR/dead-code-items.rs - MyTrait::my_trait_fn (line 110) |
| 143 | + $DIR/dead-code-items.rs - U::field (line 55) |
| 144 | + |
| 145 | +test result: FAILED. 6 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME |
| 146 | + |
0 commit comments