]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/proc-macro/attribute-with-error.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / proc-macro / attribute-with-error.stderr
index 937d47ff089798e66f2d8be8e423cbf76ed7e08f..e810e9ad658829ff2eefea25644a47e1517c0233 100644 (file)
@@ -2,37 +2,25 @@ error[E0308]: mismatched types
   --> $DIR/attribute-with-error.rs:10:18
    |
 LL |     let a: i32 = "foo";
-   |                  ^^^^^ expected i32, found reference
-   |
-   = note: expected type `i32`
-              found type `&'static str`
+   |                  ^^^^^ expected i32, found &str
 
 error[E0308]: mismatched types
   --> $DIR/attribute-with-error.rs:12:18
    |
 LL |     let b: i32 = "f'oo";
-   |                  ^^^^^^ expected i32, found reference
-   |
-   = note: expected type `i32`
-              found type `&'static str`
+   |                  ^^^^^^ expected i32, found &str
 
 error[E0308]: mismatched types
   --> $DIR/attribute-with-error.rs:25:22
    |
 LL |         let a: i32 = "foo";
-   |                      ^^^^^ expected i32, found reference
-   |
-   = note: expected type `i32`
-              found type `&'static str`
+   |                      ^^^^^ expected i32, found &str
 
 error[E0308]: mismatched types
   --> $DIR/attribute-with-error.rs:35:22
    |
 LL |         let a: i32 = "foo";
-   |                      ^^^^^ expected i32, found reference
-   |
-   = note: expected type `i32`
-              found type `&'static str`
+   |                      ^^^^^ expected i32, found &str
 
 error: aborting due to 4 previous errors