mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
a047064d6b
Reverts PR #108031 Fixes (doesnt close until beta backported) #109746 This reverts commite3f9db5fc3
. This reverts commit98b82aedba
. This reverts commit380fa26413
.
23 lines
610 B
Text
23 lines
610 B
Text
error[E0308]: mismatched types
|
|
--> $DIR/numeric-lifetime.rs:6:20
|
|
|
|
|
LL | let x: usize = "";
|
|
| ----- ^^ expected `usize`, found `&str`
|
|
| |
|
|
| expected due to this
|
|
|
|
error: lifetimes cannot start with a number
|
|
--> $DIR/numeric-lifetime.rs:1:10
|
|
|
|
|
LL | struct S<'1> { s: &'1 usize }
|
|
| ^^
|
|
|
|
error: lifetimes cannot start with a number
|
|
--> $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`.
|