rust/src/test/ui/feature-gate-match_default_...

12 lines
433 B
Plaintext

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> $DIR/feature-gate-match_default_bindings.rs:13:9
|
LL | Some(n) => {},
| ^^^^^^^ help: consider using a reference: `&Some(n)`
|
= 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`.