File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -2774,6 +2774,22 @@ For more information see the [opt-in builtin traits RFC](https://github.com/rust
2774
2774
-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md).
2775
2775
"## ,
2776
2776
2777
+ E0390 : r##"
2778
+ You tried to implement on an `*mut T` type. Erroneous code example:
2779
+
2780
+ ```
2781
+ struct Foo {
2782
+ x: i32
2783
+ }
2784
+
2785
+ impl *mut Foo {}
2786
+ // error: only a single inherent implementation marked with
2787
+ // `#[lang = "mut_ptr"]` is allowed for the `*mut T` primitive
2788
+ ```
2789
+
2790
+ To fix this, please follow the compiler recommendations.
2791
+ "## ,
2792
+
2777
2793
E0391 : r##"
2778
2794
This error indicates that some types or traits depend on each other
2779
2795
and therefore cannot be constructed.
@@ -2928,8 +2944,6 @@ register_diagnostics! {
2928
2944
// between structures
2929
2945
E0377 , // the trait `CoerceUnsized` may only be implemented for a coercion
2930
2946
// between structures with the same definition
2931
- E0390 , // only a single inherent implementation marked with
2932
- // `#[lang = \"{}\"]` is allowed for the `{}` primitive
2933
2947
E0393 , // the type parameter `{}` must be explicitly specified in an object
2934
2948
// type because its default value `{}` references the type `Self`"
2935
2949
E0399 , // trait items need to be implemented because the associated
You can’t perform that action at this time.
0 commit comments