1 error: explicit deref method call
2 --> $DIR/dereference.rs:19:19
4 LL | let b: &str = a.deref();
5 | ^^^^^^^^^ help: try this: `&*a`
7 = note: `-D clippy::explicit-deref-method` implied by `-D warnings`
9 error: explicit deref_mut method call
10 --> $DIR/dereference.rs:21:23
12 LL | let b: &mut str = a.deref_mut();
13 | ^^^^^^^^^^^^^ help: try this: `&mut *a`
15 error: explicit deref method call
16 --> $DIR/dereference.rs:24:39
18 LL | let b: String = format!("{}, {}", a.deref(), a.deref());
19 | ^^^^^^^^^ help: try this: `&*a`
21 error: explicit deref method call
22 --> $DIR/dereference.rs:24:50
24 LL | let b: String = format!("{}, {}", a.deref(), a.deref());
25 | ^^^^^^^^^ help: try this: `&*a`
27 error: explicit deref method call
28 --> $DIR/dereference.rs:26:20
30 LL | println!("{}", a.deref());
31 | ^^^^^^^^^ help: try this: `&*a`
33 error: explicit deref method call
34 --> $DIR/dereference.rs:29:11
36 LL | match a.deref() {
37 | ^^^^^^^^^ help: try this: `&*a`
39 error: explicit deref method call
40 --> $DIR/dereference.rs:33:28
42 LL | let b: String = concat(a.deref());
43 | ^^^^^^^^^ help: try this: `&*a`
45 error: aborting due to 7 previous errors