]> 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 c5970ab6baaf865b586b049668d9f686cf24908c..e810e9ad658829ff2eefea25644a47e1517c0233 100644 (file)
@@ -1,38 +1,26 @@
 error[E0308]: mismatched types
-  --> $DIR/attribute-with-error.rs:11:18
+  --> $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:13:18
+  --> $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:26:22
+  --> $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:36:22
+  --> $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