fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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