fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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