2024-09-01 22:27:43 -04:00
|
|
|
error: expected one of `.`, `;`, `?`, `else`, or an operator, found `elze`
|
|
|
|
--> $DIR/let-else.rs:2:28
|
|
|
|
|
|
|
|
|
LL | let Some(a) = Some(10) elze {}
|
|
|
|
| ^^^^ expected one of `.`, `;`, `?`, `else`, or an operator
|
2024-09-02 12:43:35 -04:00
|
|
|
|
|
|
|
|
help: there is a keyword `else` with a similar name
|
|
|
|
|
|
|
|
|
LL | let Some(a) = Some(10) else {}
|
|
|
|
| ~~~~
|
2024-09-01 22:27:43 -04:00
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|