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