fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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