1 error: explicit deref method call
2 --> $DIR/dereference.rs:13:23
4 13 | 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:17:27
12 17 | let b: &mut str = a.deref_mut();
13 | ^^^^^^^^^^^^^ help: try this: `&mut *a`
15 error: explicit deref method call
16 --> $DIR/dereference.rs:21:25
18 21 | let b: String = a.deref().clone();
19 | ^^^^^^^^^ help: try this: `&*a`
21 error: explicit deref_mut method call
22 --> $DIR/dereference.rs:25:24
24 25 | let b: usize = a.deref_mut().len();
25 | ^^^^^^^^^^^^^ help: try this: `&mut *a`
27 error: explicit deref method call
28 --> $DIR/dereference.rs:29:26
30 29 | let b: &usize = &a.deref().len();
31 | ^^^^^^^^^ help: try this: `&*a`
33 error: explicit deref method call
34 --> $DIR/dereference.rs:34:23
36 34 | let b: &str = a.deref().deref();
37 | ^^^^^^^^^ help: try this: `&*a`
39 error: explicit deref method call
40 --> $DIR/dereference.rs:39:43
42 39 | let b: String = format!("{}, {}", a.deref(), a.deref());
43 | ^^^^^^^^^ help: try this: `&*a`
45 error: explicit deref method call
46 --> $DIR/dereference.rs:39:54
48 39 | let b: String = format!("{}, {}", a.deref(), a.deref());
49 | ^^^^^^^^^ help: try this: `&*a`
51 error: aborting due to 8 previous errors