@@ -1873,13 +1873,14 @@ This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (this
1873
1873
differs from the behavior for `&T`, which is always `Copy`).
1874
1874
"## ,
1875
1875
1876
- /*
1877
1876
E0205 : r##"
1877
+ #### Note: this error code is no longer emitted by the compiler.
1878
+
1878
1879
An attempt to implement the `Copy` trait for an enum failed because one of the
1879
1880
variants does not implement `Copy`. To fix this, you must implement `Copy` for
1880
1881
the mentioned variant. Note that this may not be possible, as in the example of
1881
1882
1882
- ```compile_fail,E0205
1883
+ ```compile_fail,E0204
1883
1884
enum Foo {
1884
1885
Bar(Vec<u32>),
1885
1886
Baz,
@@ -1892,7 +1893,7 @@ This fails because `Vec<T>` does not implement `Copy` for any `T`.
1892
1893
1893
1894
Here's another example that will fail:
1894
1895
1895
- ```compile_fail,E0205
1896
+ ```compile_fail,E0204
1896
1897
#[derive(Copy)]
1897
1898
enum Foo<'a> {
1898
1899
Bar(&'a mut bool),
@@ -1903,7 +1904,6 @@ enum Foo<'a> {
1903
1904
This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (this
1904
1905
differs from the behavior for `&T`, which is always `Copy`).
1905
1906
"## ,
1906
- */
1907
1907
1908
1908
E0206 : r##"
1909
1909
You 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].
2126
2126
[RFC 1023]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
2127
2127
"## ,
2128
2128
2129
- /*
2130
2129
E0211 : r##"
2130
+ #### Note: this error code is no longer emitted by the compiler.
2131
+
2131
2132
You used a function or type which doesn't fit the requirements for where it was
2132
2133
used. Erroneous code examples:
2133
2134
@@ -2174,7 +2175,7 @@ extern "rust-intrinsic" {
2174
2175
}
2175
2176
```
2176
2177
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
2178
2179
have this definition:
2179
2180
2180
2181
```compile_fail
@@ -2206,7 +2207,6 @@ impl Foo {
2206
2207
}
2207
2208
```
2208
2209
"## ,
2209
- */
2210
2210
2211
2211
E0220 : r##"
2212
2212
You used an associated type which isn't defined in the trait.
@@ -2727,14 +2727,9 @@ impl<T, U> CoerceUnsized<MyType<U>> for MyType<T>
2727
2727
[`CoerceUnsized`]: https://doc.rust-lang.org/std/ops/trait.CoerceUnsized.html
2728
2728
"## ,
2729
2729
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
-
2737
2730
E0329 : r##"
2731
+ #### Note: this error code is no longer emitted by the compiler.
2732
+
2738
2733
An attempt was made to access an associated constant through either a generic
2739
2734
type parameter or `Self`. This is not supported yet. An example causing this
2740
2735
error is shown below:
@@ -2765,12 +2760,15 @@ trait Foo {
2765
2760
2766
2761
struct MyStruct;
2767
2762
2763
+ impl Foo for MyStruct {
2764
+ const BAR: f64 = 0f64;
2765
+ }
2766
+
2768
2767
fn get_bar_good() -> f64 {
2769
2768
<MyStruct as Foo>::BAR
2770
2769
}
2771
2770
```
2772
2771
"## ,
2773
- */
2774
2772
2775
2773
E0366 : r##"
2776
2774
An 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.
4973
4971
// between structures with the same definition
4974
4972
// E0558, // replaced with a generic attribute input check
4975
4973
// 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`,
4977
4975
// but `{}` was found in the type `{}`
4978
4976
E0587 , // type has conflicting packed and align representation hints
4979
4977
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.
4986
4984
E0634 , // type has conflicting packed representaton hints
4987
4985
E0640 , // infer outlives requirements
4988
4986
E0641 , // cannot cast to/from a pointer with an unknown kind
4989
- E0645 , // trait aliases not finished
4987
+ // E0645, // trait aliases not finished
4990
4988
E0719 , // duplicate values for associated type binding
4991
4989
E0722 , // Malformed `#[optimize]` attribute
4992
4990
E0724 , // `#[ffi_returns_twice]` is only allowed in foreign functions
0 commit comments