1 error: this pattern creates a reference to a reference
2 --> $DIR/ref_binding_to_reference.rs:30:14
7 = note: `-D clippy::ref-binding-to-reference` implied by `-D warnings`
13 error: this pattern creates a reference to a reference
14 --> $DIR/ref_binding_to_reference.rs:36:14
27 error: this pattern creates a reference to a reference
28 --> $DIR/ref_binding_to_reference.rs:46:14
30 LL | Some(ref x) => m2!(x),
35 LL | Some(x) => m2!(&x),
38 error: this pattern creates a reference to a reference
39 --> $DIR/ref_binding_to_reference.rs:51:15
41 LL | let _ = |&ref x: &&String| {
46 LL ~ let _ = |&x: &&String| {
47 LL ~ let _: &&String = &x;
50 error: this pattern creates a reference to a reference
51 --> $DIR/ref_binding_to_reference.rs:57:12
53 LL | fn f2<'a>(&ref x: &&'a String) -> &'a String {
58 LL ~ fn f2<'a>(&x: &&'a String) -> &'a String {
59 LL ~ let _: &&String = &x;
63 error: this pattern creates a reference to a reference
64 --> $DIR/ref_binding_to_reference.rs:64:11
66 LL | fn f(&ref x: &&String) {
71 LL ~ fn f(&x: &&String) {
72 LL ~ let _: &&String = &x;
75 error: this pattern creates a reference to a reference
76 --> $DIR/ref_binding_to_reference.rs:72:11
78 LL | fn f(&ref x: &&String) {
83 LL ~ fn f(&x: &&String) {
84 LL ~ let _: &&String = &x;
87 error: aborting due to 7 previous errors