]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/lex-bad-char-literals-6.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / parser / lex-bad-char-literals-6.stderr
index 4792aacefe5e9eedd46daffd4a817d991d70e215..db2b9c70a03a70e2d2b85ab24f0c2af590099518 100644 (file)
@@ -3,6 +3,7 @@ error: character literal may only contain one codepoint
    |
 LL |     let x: &str = 'ab';
    |                   ^^^^
+   |
 help: if you meant to write a `str` literal, use double quotes
    |
 LL |     let x: &str = "ab";
@@ -13,6 +14,7 @@ error: character literal may only contain one codepoint
    |
 LL |     let y: char = 'cd';
    |                   ^^^^
+   |
 help: if you meant to write a `str` literal, use double quotes
    |
 LL |     let y: char = "cd";
@@ -23,6 +25,7 @@ error: character literal may only contain one codepoint
    |
 LL |     let z = 'ef';
    |             ^^^^
+   |
 help: if you meant to write a `str` literal, use double quotes
    |
 LL |     let z = "ef";
@@ -35,16 +38,12 @@ LL |     if x == y {}
    |          ^^ no implementation for `&str == char`
    |
    = help: the trait `std::cmp::PartialEq<char>` is not implemented for `&str`
-   = note: `std::cmp::PartialEq<char>` is implemented for `&mut str`
 
 error[E0308]: mismatched types
   --> $DIR/lex-bad-char-literals-6.rs:15:20
    |
 LL |     let a: usize = "";
-   |                    ^^ expected usize, found reference
-   |
-   = note: expected type `usize`
-              found type `&'static str`
+   |                    ^^ expected usize, found &str
 
 error[E0277]: can't compare `&str` with `char`
   --> $DIR/lex-bad-char-literals-6.rs:12:10
@@ -53,7 +52,6 @@ LL |     if x == z {}
    |          ^^ no implementation for `&str == char`
    |
    = help: the trait `std::cmp::PartialEq<char>` is not implemented for `&str`
-   = note: `std::cmp::PartialEq<char>` is implemented for `&mut str`
 
 error: aborting due to 6 previous errors