2018-10-03 11:53:39 -05:00
|
|
|
error: explicit deref method call
|
2020-01-23 09:28:01 -06:00
|
|
|
--> $DIR/dereference.rs:10:19
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-23 09:28:01 -06:00
|
|
|
LL | let b: &str = a.deref();
|
|
|
|
| ^^^^^^^^^ help: try this: `&*a`
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-deref-method` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: explicit deref_mut method call
|
2020-01-23 09:28:01 -06:00
|
|
|
--> $DIR/dereference.rs:12:23
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-23 09:28:01 -06:00
|
|
|
LL | let b: &mut str = a.deref_mut();
|
|
|
|
| ^^^^^^^^^^^^^ help: try this: `&mut *a`
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
|
|
error: explicit deref method call
|
2020-01-23 09:28:01 -06:00
|
|
|
--> $DIR/dereference.rs:14:21
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-23 09:28:01 -06:00
|
|
|
LL | let b: String = a.deref().clone();
|
|
|
|
| ^^^^^^^^^ help: try this: `&*a`
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
|
|
error: explicit deref_mut method call
|
2020-01-23 09:28:01 -06:00
|
|
|
--> $DIR/dereference.rs:16:20
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-23 09:28:01 -06:00
|
|
|
LL | let b: usize = a.deref_mut().len();
|
|
|
|
| ^^^^^^^^^^^^^ help: try this: `&mut *a`
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
|
|
error: explicit deref method call
|
2020-01-23 09:28:01 -06:00
|
|
|
--> $DIR/dereference.rs:18:22
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-23 09:28:01 -06:00
|
|
|
LL | let b: &usize = &a.deref().len();
|
|
|
|
| ^^^^^^^^^ help: try this: `&*a`
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
|
|
error: explicit deref method call
|
2020-01-23 09:28:01 -06:00
|
|
|
--> $DIR/dereference.rs:21:19
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-23 09:28:01 -06:00
|
|
|
LL | let b: &str = a.deref().deref();
|
|
|
|
| ^^^^^^^^^ help: try this: `&*a`
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
|
|
error: explicit deref method call
|
2020-01-23 09:28:01 -06:00
|
|
|
--> $DIR/dereference.rs:24:39
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-23 09:28:01 -06:00
|
|
|
LL | let b: String = format!("{}, {}", a.deref(), a.deref());
|
|
|
|
| ^^^^^^^^^ help: try this: `&*a`
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
|
|
error: explicit deref method call
|
2020-01-23 09:28:01 -06:00
|
|
|
--> $DIR/dereference.rs:24:50
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-23 09:28:01 -06:00
|
|
|
LL | let b: String = format!("{}, {}", a.deref(), a.deref());
|
|
|
|
| ^^^^^^^^^ help: try this: `&*a`
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|