2023-11-27 18:28:51 +09:00
|
|
|
error: switch the order of `ref` and `box`
|
|
|
|
|
--> $DIR/pattern-bad-ref-box-order.rs:8:14
|
|
|
|
|
|
|
|
|
|
|
LL | Some(ref box _i) => {},
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: swap them
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - Some(ref box _i) => {},
|
|
|
|
|
LL + Some(box ref _i) => {},
|
|
|
|
|
|
|
2023-11-27 18:28:51 +09:00
|
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|