]> git.lizzy.rs Git - rust.git/blob - src/test/ui/single-primitive-inherent-impl.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / single-primitive-inherent-impl.stderr
1 error[E0390]: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
2   --> $DIR/single-primitive-inherent-impl.rs:21:1
3    |
4 LL | / impl str {
5 LL | | //~^ error: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
6 LL | | }
7    | |_^
8    |
9 help: consider using a trait to implement these methods
10   --> $DIR/single-primitive-inherent-impl.rs:21:1
11    |
12 LL | / impl str {
13 LL | | //~^ error: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
14 LL | | }
15    | |_^
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0390`.