@@ -34,43 +34,6 @@ LL | impl std::ops::AddAssign for &[u8] {
34
34
|
35
35
= note: define and implement a trait or new type instead
36
36
37
- error[E0053]: method `add_assign` has an incompatible type for trait
38
- --> $DIR/issue-67535.rs:5:19
39
- |
40
- LL | fn add_assign(&self, other: ()) -> () {
41
- | ^^^^^
42
- | |
43
- | types differ in mutability
44
- | help: change the self-receiver type to match the trait: `&mut self`
45
- |
46
- = note: expected signature `fn(&mut (), ())`
47
- found signature `fn(&(), ())`
48
-
49
- error[E0053]: method `add_assign` has an incompatible type for trait
50
- --> $DIR/issue-67535.rs:12:19
51
- |
52
- LL | fn add_assign(&self, other: [(); 1]) -> [(); 1] {
53
- | ^^^^^
54
- | |
55
- | types differ in mutability
56
- | help: change the self-receiver type to match the trait: `&mut self`
57
- |
58
- = note: expected signature `fn(&mut _, _)`
59
- found signature `fn(&_, _) -> [(); 1]`
60
-
61
- error[E0053]: method `add_assign` has an incompatible type for trait
62
- --> $DIR/issue-67535.rs:19:19
63
- |
64
- LL | fn add_assign(&self, other: &[u8]) -> &[u8] {
65
- | ^^^^^
66
- | |
67
- | types differ in mutability
68
- | help: change the self-receiver type to match the trait: `&mut self`
69
- |
70
- = note: expected signature `fn(&mut &_, &_)`
71
- found signature `fn(&&_, &_) -> &[u8]`
72
-
73
- error: aborting due to 6 previous errors
37
+ error: aborting due to 3 previous errors
74
38
75
- Some errors have detailed explanations: E0053, E0117.
76
- For more information about an error, try `rustc --explain E0053`.
39
+ For more information about this error, try `rustc --explain E0117`.
0 commit comments