]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/single-primitive-inherent-impl.stderr
Auto merge of #79780 - camelid:use-summary_opts, r=GuillaumeGomez
[rust.git] / src / test / ui / single-primitive-inherent-impl.stderr
index 21bbbe693466dbe6fca8a9c324dbf58934adacda..50a0d5bef86d32d5da908db03c8162bf72e59765 100644 (file)
@@ -2,17 +2,11 @@ error[E0390]: only a single inherent implementation marked with `#[lang = "str"]
   --> $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