Skip to content

Commit 72844ee

Browse files
Bless test fallout
1 parent 4e84989 commit 72844ee

3 files changed

+10
-6
lines changed

tests/ui/lint/dead-code/unused-adt-impl-pub-trait-with-assoc-const.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![deny(dead_code)]
22

33
struct T1; //~ ERROR struct `T1` is never constructed
4-
pub struct T2(i32); //~ ERROR struct `T2` is never constructed
4+
pub struct T2(i32); //~ ERROR field `0` is never read
55
struct T3;
66

77
trait Trait1 { //~ ERROR trait `Trait1` is never used

tests/ui/lint/dead-code/unused-adt-impl-pub-trait-with-assoc-const.stderr

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ note: the lint level is defined here
1010
LL | #![deny(dead_code)]
1111
| ^^^^^^^^^
1212

13-
error: struct `T2` is never constructed
14-
--> $DIR/unused-adt-impl-pub-trait-with-assoc-const.rs:4:12
13+
error: field `0` is never read
14+
--> $DIR/unused-adt-impl-pub-trait-with-assoc-const.rs:4:15
1515
|
1616
LL | pub struct T2(i32);
17-
| ^^
17+
| -- ^^^
18+
| |
19+
| field in this struct
20+
|
21+
= help: consider removing this field
1822

1923
error: trait `Trait1` is never used
2024
--> $DIR/unused-adt-impl-pub-trait-with-assoc-const.rs:7:7

tests/ui/pub/pub-ident-struct-4.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error: missing `struct` for struct definition
2-
--> $DIR/pub-ident-struct-4.rs:3:4
2+
--> $DIR/pub-ident-struct-4.rs:3:1
33
|
44
LL | pub T(#[allow(dead_code)] String);
5-
| ^
5+
| ^^^^^
66
|
77
help: add `struct` here to parse `T` as a struct
88
|

0 commit comments

Comments
 (0)