fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
482 B19 linesraw
1error[E0390]: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
2  --> $DIR/single-primitive-inherent-impl.rs:11:1
3   |
4LL | / impl str {
5LL | |
6LL | | }
7   | |_^
8   |
9help: consider using a trait to implement these methods
10  --> $DIR/single-primitive-inherent-impl.rs:11:1
11   |
12LL | / impl str {
13LL | |
14LL | | }
15   | |_^
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0390`.