fork/rust

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

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

1.40.0
593 B21 linesraw
1error[E0308]: mismatched types
2  --> $DIR/nested-item-spans.rs:9:22
3   |
4LL |         let x: u32 = "x";
5   |                      ^^^ expected u32, found reference
6   |
7   = note: expected type `u32`
8              found type `&'static str`
9
10error[E0308]: mismatched types
11  --> $DIR/nested-item-spans.rs:18:22
12   |
13LL |         let x: u32 = "x";
14   |                      ^^^ expected u32, found reference
15   |
16   = note: expected type `u32`
17              found type `&'static str`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0308`.