1 error[E0308]: mismatched types
2 --> $DIR/attribute-with-error.rs:21:18
4 LL | let a: i32 = "foo";
5 | ^^^^^ expected i32, found reference
7 = note: expected type `i32`
8 found type `&'static str`
10 error[E0308]: mismatched types
11 --> $DIR/attribute-with-error.rs:23:18
13 LL | let b: i32 = "f'oo";
14 | ^^^^^^ expected i32, found reference
16 = note: expected type `i32`
17 found type `&'static str`
19 error[E0308]: mismatched types
20 --> $DIR/attribute-with-error.rs:36:22
22 LL | let a: i32 = "foo";
23 | ^^^^^ expected i32, found reference
25 = note: expected type `i32`
26 found type `&'static str`
28 error[E0308]: mismatched types
29 --> $DIR/attribute-with-error.rs:46:22
31 LL | let a: i32 = "foo";
32 | ^^^^^ expected i32, found reference
34 = note: expected type `i32`
35 found type `&'static str`
37 error: aborting due to 4 previous errors
39 For more information about this error, try `rustc --explain E0308`.