@@ -2482,7 +2482,8 @@ impl Foo for Bar {
2482
2482
}
2483
2483
```
2484
2484
2485
- To fix this error, please verify you didn't misspell the method name. Example:
2485
+ To fix this error, please verify that the method name wasn't misspelled and
2486
+ verify that you are indeed implementing the correct trait items. Example:
2486
2487
2487
2488
```
2488
2489
struct Bar;
@@ -2519,9 +2520,8 @@ impl Foo for Bar {
2519
2520
}
2520
2521
```
2521
2522
2522
- To fix this error, please verify you didn't misspell the associated type name
2523
- and that your trait item implementation corresponds to the trait definition.
2524
- Example:
2523
+ Please verify that the associated type name wasn't misspelled and your
2524
+ implementation corresponds to the trait definition. Example:
2525
2525
2526
2526
```
2527
2527
struct Bar;
@@ -2722,8 +2722,8 @@ let x = 12f32; // error: binary operation `<<` cannot be applied to
2722
2722
x << 2;
2723
2723
```
2724
2724
2725
- To fix this error, please check this type implements this binary operation.
2726
- Example:
2725
+ To fix this error, please check that this type implements this binary
2726
+ operation. Example:
2727
2727
2728
2728
```
2729
2729
let x = 12u32; // the `u32` type does implement it:
@@ -2775,7 +2775,8 @@ For more information see the [opt-in builtin traits RFC](https://github.com/rust
2775
2775
"## ,
2776
2776
2777
2777
E0390 : r##"
2778
- You tried to implement on an `*mut T` type. Erroneous code example:
2778
+ You tried to implement methods for a mutable raw pointer (*mut T). Erroneous
2779
+ code example:
2779
2780
2780
2781
```
2781
2782
struct Foo {
@@ -2787,7 +2788,12 @@ impl *mut Foo {}
2787
2788
// `#[lang = "mut_ptr"]` is allowed for the `*mut T` primitive
2788
2789
```
2789
2790
2790
- To fix this, please follow the compiler recommendations.
2791
+ This isn't allowed, perhaps you might get the desired effects by wrapping the
2792
+ raw pointer in a struct. Example:
2793
+
2794
+ ```
2795
+ struct FooPtr(pub *mut Foo);
2796
+ ```
2791
2797
"## ,
2792
2798
2793
2799
E0391 : r##"
0 commit comments