@@ -1873,13 +1873,14 @@ This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (this
18731873differs from the behavior for `&T`, which is always `Copy`).
18741874"## ,
18751875
1876- /*
18771876E0205 : r##"
1877+ #### Note: this error code is no longer emitted by the compiler.
1878+
18781879An attempt to implement the `Copy` trait for an enum failed because one of the
18791880variants does not implement `Copy`. To fix this, you must implement `Copy` for
18801881the mentioned variant. Note that this may not be possible, as in the example of
18811882
1882- ```compile_fail,E0205
1883+ ```compile_fail,E0204
18831884enum Foo {
18841885 Bar(Vec<u32>),
18851886 Baz,
@@ -1892,7 +1893,7 @@ This fails because `Vec<T>` does not implement `Copy` for any `T`.
18921893
18931894Here's another example that will fail:
18941895
1895- ```compile_fail,E0205
1896+ ```compile_fail,E0204
18961897#[derive(Copy)]
18971898enum Foo<'a> {
18981899 Bar(&'a mut bool),
@@ -1903,7 +1904,6 @@ enum Foo<'a> {
19031904This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (this
19041905differs from the behavior for `&T`, which is always `Copy`).
19051906"## ,
1906- */
19071907
19081908E0206 : r##"
19091909You can only implement `Copy` for a struct or enum. Both of the following
@@ -2126,8 +2126,9 @@ For information on the design of the orphan rules, see [RFC 1023].
21262126[RFC 1023]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
21272127"## ,
21282128
2129- /*
21302129E0211 : r##"
2130+ #### Note: this error code is no longer emitted by the compiler.
2131+
21312132You used a function or type which doesn't fit the requirements for where it was
21322133used. Erroneous code examples:
21332134
@@ -2174,7 +2175,7 @@ extern "rust-intrinsic" {
21742175}
21752176```
21762177
2177- The second case example is a bit particular : the main function must always
2178+ The second case example is a bit particular: the main function must always
21782179have this definition:
21792180
21802181```compile_fail
@@ -2206,7 +2207,6 @@ impl Foo {
22062207}
22072208```
22082209"## ,
2209- */
22102210
22112211E0220 : r##"
22122212You used an associated type which isn't defined in the trait.
@@ -2727,14 +2727,9 @@ impl<T, U> CoerceUnsized<MyType<U>> for MyType<T>
27272727[`CoerceUnsized`]: https://doc.rust-lang.org/std/ops/trait.CoerceUnsized.html
27282728"## ,
27292729
2730- /*
2731- // Associated consts can now be accessed through generic type parameters, and
2732- // this error is no longer emitted.
2733- //
2734- // FIXME: consider whether to leave it in the error index, or remove it entirely
2735- // as associated consts is not stabilized yet.
2736-
27372730E0329 : r##"
2731+ #### Note: this error code is no longer emitted by the compiler.
2732+
27382733An attempt was made to access an associated constant through either a generic
27392734type parameter or `Self`. This is not supported yet. An example causing this
27402735error is shown below:
@@ -2765,12 +2760,15 @@ trait Foo {
27652760
27662761struct MyStruct;
27672762
2763+ impl Foo for MyStruct {
2764+ const BAR: f64 = 0f64;
2765+ }
2766+
27682767fn get_bar_good() -> f64 {
27692768 <MyStruct as Foo>::BAR
27702769}
27712770```
27722771"## ,
2773- */
27742772
27752773E0366 : r##"
27762774An attempt was made to implement `Drop` on a concrete specialization of a
@@ -4973,7 +4971,7 @@ and the pin is required to keep it in the same place in memory.
49734971 // between structures with the same definition
49744972// E0558, // replaced with a generic attribute input check
49754973// E0563, // cannot determine a type for this `impl Trait` removed in 6383de15
4976- E0564 , // only named lifetimes are allowed in `impl Trait`,
4974+ // E0564, // only named lifetimes are allowed in `impl Trait`,
49774975 // but `{}` was found in the type `{}`
49784976 E0587 , // type has conflicting packed and align representation hints
49794977 E0588 , // packed type cannot transitively contain a `[repr(align)]` type
@@ -4986,7 +4984,7 @@ and the pin is required to keep it in the same place in memory.
49864984 E0634 , // type has conflicting packed representaton hints
49874985 E0640 , // infer outlives requirements
49884986 E0641 , // cannot cast to/from a pointer with an unknown kind
4989- E0645 , // trait aliases not finished
4987+ // E0645, // trait aliases not finished
49904988 E0719 , // duplicate values for associated type binding
49914989 E0722 , // Malformed `#[optimize]` attribute
49924990 E0724 , // `#[ffi_returns_twice]` is only allowed in foreign functions
0 commit comments