]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type/type-shadow.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / type / type-shadow.stderr
index f15bdc16d5144ca7657c9f832127fc4f5fe963da..70be30ed53e8339940131bbac612f9c1a37b68e2 100644 (file)
@@ -2,10 +2,7 @@ error[E0308]: mismatched types
   --> $DIR/type-shadow.rs:6:20
    |
 LL |         let y: Y = "hello";
-   |                    ^^^^^^^ expected isize, found reference
-   |
-   = note: expected type `isize`
-              found type `&'static str`
+   |                    ^^^^^^^ expected isize, found &str
 
 error: aborting due to previous error