]> 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 4c7aa00565adf3ce49e267b7094284466b8cca05..70be30ed53e8339940131bbac612f9c1a37b68e2 100644 (file)
@@ -1,11 +1,8 @@
 error[E0308]: mismatched types
   --> $DIR/type-shadow.rs:6:20
    |
-LL |         let y: Y = "hello"; //~ ERROR mismatched types
-   |                    ^^^^^^^ expected isize, found reference
-   |
-   = note: expected type `isize`
-              found type `&'static str`
+LL |         let y: Y = "hello";
+   |                    ^^^^^^^ expected isize, found &str
 
 error: aborting due to previous error