2023-05-20 08:39:26 -05:00
|
|
|
error: usage of ref pattern
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/ref_patterns.rs:8:14
|
2023-05-20 08:39:26 -05:00
|
|
|
|
|
|
|
|
LL | Some(ref opt) => {},
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using `&` for clarity instead
|
|
|
|
= note: `-D clippy::ref-patterns` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::ref_patterns)]`
|
2023-05-20 08:39:26 -05:00
|
|
|
|
|
|
|
error: usage of ref pattern
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/ref_patterns.rs:15:9
|
2023-05-20 08:39:26 -05:00
|
|
|
|
|
|
|
|
LL | let ref y = x;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using `&` for clarity instead
|
|
|
|
|
|
|
|
error: usage of ref pattern
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/ref_patterns.rs:19:21
|
2023-05-20 08:39:26 -05:00
|
|
|
|
|
|
|
|
LL | fn use_in_parameter(ref x: i32) {}
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using `&` for clarity instead
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|