Skip to content

Commit

Permalink
Bless test fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Jul 31, 2024
1 parent 6f48a64 commit b1a5e07
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![deny(dead_code)]

struct T1; //~ ERROR struct `T1` is never constructed
pub struct T2(i32); //~ ERROR struct `T2` is never constructed
pub struct T2(i32); //~ ERROR field `0` is never read
struct T3;

trait Trait1 { //~ ERROR trait `Trait1` is never used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ note: the lint level is defined here
LL | #![deny(dead_code)]
| ^^^^^^^^^

error: struct `T2` is never constructed
--> $DIR/unused-adt-impl-pub-trait-with-assoc-const.rs:4:12
error: field `0` is never read
--> $DIR/unused-adt-impl-pub-trait-with-assoc-const.rs:4:15
|
LL | pub struct T2(i32);
| ^^
| -- ^^^
| |
| field in this struct
|
= help: consider removing this field

error: trait `Trait1` is never used
--> $DIR/unused-adt-impl-pub-trait-with-assoc-const.rs:7:7
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/pub/pub-ident-struct-4.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error: missing `struct` for struct definition
--> $DIR/pub-ident-struct-4.rs:3:4
--> $DIR/pub-ident-struct-4.rs:3:1
|
LL | pub T(#[allow(dead_code)] String);
| ^
| ^^^^^
|
help: add `struct` here to parse `T` as a struct
|
Expand Down

0 comments on commit b1a5e07

Please sign in to comment.