]> 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 a7bbe05e94b7b7a15c6536203cd173b8e9f9380c..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";
@@ -40,10 +43,7 @@ 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