1 error[E0308]: mismatched types
2 --> $DIR/attribute-with-error.rs:25:22
4 LL | let a: i32 = "foo";
5 | --- ^^^^^ expected `i32`, found `&str`
9 error[E0308]: mismatched types
10 --> $DIR/attribute-with-error.rs:10:18
12 LL | let a: i32 = "foo";
13 | --- ^^^^^ expected `i32`, found `&str`
15 | expected due to this
17 error[E0308]: mismatched types
18 --> $DIR/attribute-with-error.rs:12:18
20 LL | let b: i32 = "f'oo";
21 | --- ^^^^^^ expected `i32`, found `&str`
23 | expected due to this
25 error[E0308]: mismatched types
26 --> $DIR/attribute-with-error.rs:35:22
28 LL | let a: i32 = "foo";
29 | --- ^^^^^ expected `i32`, found `&str`
31 | expected due to this
33 error: aborting due to 4 previous errors
35 For more information about this error, try `rustc --explain E0308`.