fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
610 B23 linesraw
1error[E0308]: mismatched types
2  --> $DIR/numeric-lifetime.rs:6:20
3   |
4LL |     let x: usize = "";
5   |            -----   ^^ expected `usize`, found `&str`
6   |            |
7   |            expected due to this
8
9error: lifetimes cannot start with a number
10  --> $DIR/numeric-lifetime.rs:1:10
11   |
12LL | struct S<'1> { s: &'1 usize }
13   |          ^^
14
15error: lifetimes cannot start with a number
16  --> $DIR/numeric-lifetime.rs:1:20
17   |
18LL | struct S<'1> { s: &'1 usize }
19   |                    ^^
20
21error: aborting due to 3 previous errors
22
23For more information about this error, try `rustc --explain E0308`.