summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/ref_patterns.stderr
blob: 74892bac6e4f4a4525b0b0e64e5ea20653fb5f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
error: usage of ref pattern
  --> $DIR/ref_patterns.rs:8:14
   |
LL |         Some(ref opt) => {},
   |              ^^^^^^^
   |
   = help: consider using `&` for clarity instead
   = note: `-D clippy::ref-patterns` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::ref_patterns)]`

error: usage of ref pattern
  --> $DIR/ref_patterns.rs:15:9
   |
LL |     let ref y = x;
   |         ^^^^^
   |
   = help: consider using `&` for clarity instead

error: usage of ref pattern
  --> $DIR/ref_patterns.rs:19:21
   |
LL | fn use_in_parameter(ref x: i32) {}
   |                     ^^^^^
   |
   = help: consider using `&` for clarity instead

error: aborting due to 3 previous errors