]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/numeric-lifetime.stderr
4a7a28825ffc2f0100096469bced04bec8036656
[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 reference
18    |
19    = note:   expected type `usize`
20            found reference `&'static str`
21
22 error: aborting due to 3 previous errors
23
24 For more information about this error, try `rustc --explain E0308`.