about summary refs log tree commit diff
path: root/compiler/rustc_error_codes
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-18 00:05:52 +0100
committerGitHub <noreply@github.com>2023-03-18 00:05:52 +0100
commite7d6369ed436e75c65aec961095807e884b04cc0 (patch)
tree1e61f23949214d877d555f74f0a974abdac41a03 /compiler/rustc_error_codes
parent55d5cd5e95601aaf8b2ac477dffc1945ca8c95e6 (diff)
parentc4bb47ac36aa3975160ba8fb72978202e436a2f9 (diff)
downloadrust-e7d6369ed436e75c65aec961095807e884b04cc0.tar.gz
rust-e7d6369ed436e75c65aec961095807e884b04cc0.zip
Rollup merge of #109211 - mili-l:mili_l/update_e0206_description, r=WaffleLapkin
E0206 - update description

added `union` to description
Diffstat (limited to 'compiler/rustc_error_codes')
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0206.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0206.md b/compiler/rustc_error_codes/src/error_codes/E0206.md
index 4405a2149ce..9e85234bdbb 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0206.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0206.md
@@ -1,5 +1,5 @@
-The `Copy` trait was implemented on a type which is neither a struct nor an
-enum.
+The `Copy` trait was implemented on a type which is neither a struct, an
+enum, nor a union.
 
 Erroneous code example:
 
@@ -10,6 +10,6 @@ struct Bar;
 impl Copy for &'static mut Bar { } // error!
 ```
 
-You can only implement `Copy` for a struct or an enum.
+You can only implement `Copy` for a struct, an enum, or a union.
 The previous example will fail because `&'static mut Bar`
-is not a struct or enum.
+is not a struct, an enum, or a union.