12 lines
454 B
Plaintext
12 lines
454 B
Plaintext
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
|
|
--> $DIR/suggestion.rs:12:12
|
|
|
|
|
LL | if let Some(y) = &Some(22) { //~ ERROR non-reference pattern
|
|
| ^^^^^^^ help: consider using a reference: `&Some(y)`
|
|
|
|
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|