--> $DIR/single-primitive-inherent-impl.rs:11:1
|
LL | / impl str {
-LL | | //~^ error: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
+LL | |
LL | | }
| |_^
|
-help: consider using a trait to implement these methods
- --> $DIR/single-primitive-inherent-impl.rs:11:1
- |
-LL | / impl str {
-LL | | //~^ error: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
-LL | | }
- | |_^
+ = help: consider using a trait
error: aborting due to previous error