2022-09-01 18:48:09 +00: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 06:52:18 +00:00
|
|
|
error: lifetimes cannot start with a number
|
2019-03-02 18:38:20 +00:00
|
|
|
--> $DIR/numeric-lifetime.rs:1:10
|
|
|
|
|
|
|
|
|
LL | struct S<'1> { s: &'1 usize }
|
|
|
|
| ^^
|
|
|
|
|
2023-04-10 06:52:18 +00:00
|
|
|
error: lifetimes cannot start with a number
|
2019-03-02 18:38:20 +00: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`.
|