]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/numeric-lifetime.stderr
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / numeric-lifetime.stderr
1 error[E0308]: mismatched types
2   --> $DIR/numeric-lifetime.rs:6:20
3    |
4 LL |     let x: usize = "";
5    |            -----   ^^ expected `usize`, found `&str`
6    |            |
7    |            expected due to this
8
9 error: lifetimes cannot start with a number
10   --> $DIR/numeric-lifetime.rs:1:10
11    |
12 LL | struct S<'1> { s: &'1 usize }
13    |          ^^
14
15 error: lifetimes cannot start with a number
16   --> $DIR/numeric-lifetime.rs:1:20
17    |
18 LL | struct S<'1> { s: &'1 usize }
19    |                    ^^
20
21 error: aborting due to 3 previous errors
22
23 For more information about this error, try `rustc --explain E0308`.