Skip to content

Commit 90bd3f9

Browse files
committed
Update tests
1 parent ca2fe82 commit 90bd3f9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

library/core/src/default.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ use crate::ascii::Char as AsciiChar;
106106
#[const_trait]
107107
#[rustc_const_unstable(feature = "const_default", issue = "none")]
108108
#[rustc_trivial_field_reads]
109-
#[rustc_const_unstable(feature = "const_default", issue = "none")]
110109
pub trait Default: Sized {
111110
/// Returns the "default value" for a type.
112111
///

tests/ui/lint/dead-code/unused-struct-derive-default.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct Used;
99
#[derive(Default)]
1010
enum E {
1111
#[default]
12-
A, //~ ERROR variants `A` and `B` is never constructed
12+
A, //~ ERROR variants `A` and `B` are never constructed
1313
//~^ NOTE `E` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis
1414
B,
1515
}

0 commit comments

Comments
 (0)