2023-11-14 00:46:37 +00:00
|
|
|
error: expected one of `...`, `..=`, `..`, `=>`, `if`, or `|`, found `>=`
|
|
|
|
|
--> $DIR/recover-ge-as-fat-arrow.rs:4:11
|
|
|
|
|
|
|
|
|
|
|
LL | 1 >= {}
|
|
|
|
|
| ^^
|
|
|
|
|
| |
|
|
|
|
|
| expected one of `...`, `..=`, `..`, `=>`, `if`, or `|`
|
|
|
|
|
| help: use a fat arrow to start a match arm: `=>`
|
|
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
|
--> $DIR/recover-ge-as-fat-arrow.rs:5:29
|
|
|
|
|
|
|
|
|
|
|
LL | _ => { let _: u16 = 2u8; }
|
|
|
|
|
| --- ^^^ expected `u16`, found `u8`
|
|
|
|
|
| |
|
|
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
|
|
|
help: change the type of the numeric literal from `u8` to `u16`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - _ => { let _: u16 = 2u8; }
|
|
|
|
|
LL + _ => { let _: u16 = 2u16; }
|
|
|
|
|
|
|
2023-11-14 00:46:37 +00:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|