1 error: explicit `deref` method call
2 --> $DIR/explicit_deref_methods.rs:35:19
4 LL | let b: &str = a.deref();
5 | ^^^^^^^^^ help: try this: `&*a`
7 = note: `-D clippy::explicit-deref-methods` implied by `-D warnings`
9 error: explicit `deref_mut` method call
10 --> $DIR/explicit_deref_methods.rs:37:23
12 LL | let b: &mut str = a.deref_mut();
13 | ^^^^^^^^^^^^^ help: try this: `&mut **a`
15 error: explicit `deref` method call
16 --> $DIR/explicit_deref_methods.rs:40:39
18 LL | let b: String = format!("{}, {}", a.deref(), a.deref());
19 | ^^^^^^^^^ help: try this: `&*a`
21 error: explicit `deref` method call
22 --> $DIR/explicit_deref_methods.rs:40:50
24 LL | let b: String = format!("{}, {}", a.deref(), a.deref());
25 | ^^^^^^^^^ help: try this: `&*a`
27 error: explicit `deref` method call
28 --> $DIR/explicit_deref_methods.rs:42:20
30 LL | println!("{}", a.deref());
31 | ^^^^^^^^^ help: try this: `&*a`
33 error: explicit `deref` method call
34 --> $DIR/explicit_deref_methods.rs:45:11
36 LL | match a.deref() {
37 | ^^^^^^^^^ help: try this: `&*a`
39 error: explicit `deref` method call
40 --> $DIR/explicit_deref_methods.rs:49:28
42 LL | let b: String = concat(a.deref());
43 | ^^^^^^^^^ help: try this: `&*a`
45 error: explicit `deref` method call
46 --> $DIR/explicit_deref_methods.rs:51:13
48 LL | let b = just_return(a).deref();
49 | ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `just_return(a)`
51 error: explicit `deref` method call
52 --> $DIR/explicit_deref_methods.rs:53:28
54 LL | let b: String = concat(just_return(a).deref());
55 | ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `just_return(a)`
57 error: explicit `deref` method call
58 --> $DIR/explicit_deref_methods.rs:55:19
60 LL | let b: &str = a.deref().deref();
61 | ^^^^^^^^^^^^^^^^^ help: try this: `&**a`
63 error: explicit `deref` method call
64 --> $DIR/explicit_deref_methods.rs:58:13
66 LL | let b = opt_a.unwrap().deref();
67 | ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&*opt_a.unwrap()`
69 error: explicit `deref` method call
70 --> $DIR/explicit_deref_methods.rs:84:31
72 LL | let b: &str = expr_deref!(a.deref());
73 | ^^^^^^^^^ help: try this: `&*a`
75 error: aborting due to 12 previous errors