2018-08-08 14:28:26 +02:00
|
|
|
error[E0390]: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/single-primitive-inherent-impl.rs:11:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
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 to implement these methods
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/single-primitive-inherent-impl.rs:11:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | / impl str {
|
|
|
|
LL | | //~^ error: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0390`.
|