2023-11-06 17:31:13 -06:00
|
|
|
error: unexpected parentheses surrounding `match` arm pattern
|
2023-11-06 17:48:58 -06:00
|
|
|
--> $DIR/recover-parens-around-match-arm-head.rs:5:9
|
2023-11-06 13:50:00 -06:00
|
|
|
|
|
|
|
|
LL | (0 if true) => {
|
2023-11-06 17:31:13 -06:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove parentheses surrounding the pattern
|
|
|
|
|
|
|
|
|
LL - (0 if true) => {
|
|
|
|
LL + 0 if true => {
|
|
|
|
|
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-11-06 17:48:58 -06:00
|
|
|
--> $DIR/recover-parens-around-match-arm-head.rs:11:19
|
2023-11-06 17:31:13 -06:00
|
|
|
|
|
|
|
|
LL | let _y: u32 = x;
|
|
|
|
| --- ^ expected `u32`, found `u8`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
|
help: you can convert a `u8` to a `u32`
|
|
|
|
|
|
|
|
|
LL | let _y: u32 = x.into();
|
|
|
|
| +++++++
|
2023-11-06 13:50:00 -06:00
|
|
|
|
2023-11-06 17:31:13 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2023-11-06 13:50:00 -06:00
|
|
|
|
2023-11-06 17:31:13 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|