2022-09-01 13:48:09 -05:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/numeric-lifetime.rs:6:20
|
|
|
|
|
|
|
|
|
LL | let x: usize = "";
|
|
|
|
| ----- ^^ expected `usize`, found `&str`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
|
|
|
|
2023-04-10 01:52:18 -05:00
|
|
|
error: lifetimes cannot start with a number
|
2019-03-02 12:38:20 -06:00
|
|
|
--> $DIR/numeric-lifetime.rs:1:10
|
|
|
|
|
|
|
|
|
LL | struct S<'1> { s: &'1 usize }
|
|
|
|
| ^^
|
|
|
|
|
2023-04-10 01:52:18 -05:00
|
|
|
error: lifetimes cannot start with a number
|
2019-03-02 12:38:20 -06:00
|
|
|
--> $DIR/numeric-lifetime.rs:1:20
|
|
|
|
|
|
|
|
|
LL | struct S<'1> { s: &'1 usize }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|