diff options
| author | bors <bors@rust-lang.org> | 2021-07-28 05:59:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-07-28 05:59:30 +0000 |
| commit | aea2e446f09b923d513013743b37b43fca7282dc (patch) | |
| tree | ac53a52123dd478795393e478e43608b98871609 /compiler/rustc_error_codes/src | |
| parent | 8b50cc9a2c408caef30a1cf950c948509b2f648e (diff) | |
| parent | 72465b0a32e689cd6a61120479c13b38281108a7 (diff) | |
| download | rust-aea2e446f09b923d513013743b37b43fca7282dc.tar.gz rust-aea2e446f09b923d513013743b37b43fca7282dc.zip | |
Auto merge of #86735 - jhpratt:rfc-3107, r=petrochenkov
Implement RFC 3107: `#[derive(Default)]` on enums with a `#[default]` attribute This PR implements RFC 3107, which permits `#[derive(Default)]` on enums where a unit variant has a `#[default]` attribute. See comments for current status.
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0665.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0665.md b/compiler/rustc_error_codes/src/error_codes/E0665.md index a15f4021c71..ae54d6d1579 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0665.md +++ b/compiler/rustc_error_codes/src/error_codes/E0665.md @@ -1,8 +1,10 @@ +#### Note: this error code is no longer emitted by the compiler. + The `Default` trait was derived on an enum. Erroneous code example: -```compile_fail,E0665 +```compile_fail #[derive(Default)] enum Food { Sweet, |
