]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/proc-macro/nested-item-spans.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / proc-macro / nested-item-spans.stderr
index 011a91d446295855ab6998e47eea83c6ee7124c8..e6d1c9356ea76c63142cafe3810195b7ef12fbdc 100644 (file)
@@ -1,20 +1,14 @@
 error[E0308]: mismatched types
-  --> $DIR/nested-item-spans.rs:10:22
+  --> $DIR/nested-item-spans.rs:9:22
    |
 LL |         let x: u32 = "x";
-   |                      ^^^ expected u32, found reference
-   |
-   = note: expected type `u32`
-              found type `&'static str`
+   |                      ^^^ expected u32, found &str
 
 error[E0308]: mismatched types
-  --> $DIR/nested-item-spans.rs:19:22
+  --> $DIR/nested-item-spans.rs:18:22
    |
 LL |         let x: u32 = "x";
-   |                      ^^^ expected u32, found reference
-   |
-   = note: expected type `u32`
-              found type `&'static str`
+   |                      ^^^ expected u32, found &str
 
 error: aborting due to 2 previous errors