2018-10-03 11:53:39 -05:00
|
|
|
error: explicit deref method call
|
2020-03-21 13:34:56 -05:00
|
|
|
--> $DIR/dereference.rs:30: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
|
|
|
|
|
2020-03-07 08:33:27 -06:00
|
|
|
= note: `-D clippy::explicit-deref-methods` implied by `-D warnings`
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
|
|
error: explicit deref_mut method call
|
2020-03-21 13:34:56 -05:00
|
|
|
--> $DIR/dereference.rs:32: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-03-21 13:34:56 -05:00
|
|
|
--> $DIR/dereference.rs:35:39
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-26 12:48:30 -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-03-21 13:34:56 -05:00
|
|
|
--> $DIR/dereference.rs:35:50
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-26 12:48:30 -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-03-21 13:34:56 -05:00
|
|
|
--> $DIR/dereference.rs:37:20
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-26 12:48:30 -06:00
|
|
|
LL | println!("{}", a.deref());
|
|
|
|
| ^^^^^^^^^ help: try this: `&*a`
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
|
|
error: explicit deref method call
|
2020-03-21 13:34:56 -05:00
|
|
|
--> $DIR/dereference.rs:40:11
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-26 12:48:30 -06:00
|
|
|
LL | match a.deref() {
|
|
|
|
| ^^^^^^^^^ help: try this: `&*a`
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
|
|
error: explicit deref method call
|
2020-03-21 13:34:56 -05:00
|
|
|
--> $DIR/dereference.rs:44:28
|
2018-10-03 11:53:39 -05:00
|
|
|
|
|
2020-01-26 12:48:30 -06:00
|
|
|
LL | let b: String = concat(a.deref());
|
|
|
|
| ^^^^^^^^^ help: try this: `&*a`
|
2018-10-03 11:53:39 -05:00
|
|
|
|
2020-03-07 08:33:27 -06:00
|
|
|
error: explicit deref method call
|
2020-03-21 13:34:56 -05:00
|
|
|
--> $DIR/dereference.rs:46:13
|
2020-03-07 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | let b = just_return(a).deref();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&*just_return(a)`
|
|
|
|
|
|
|
|
error: explicit deref method call
|
2020-03-21 13:34:56 -05:00
|
|
|
--> $DIR/dereference.rs:48:28
|
2020-03-07 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | let b: String = concat(just_return(a).deref());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&*just_return(a)`
|
|
|
|
|
|
|
|
error: explicit deref method call
|
2020-03-21 13:34:56 -05:00
|
|
|
--> $DIR/dereference.rs:50:19
|
2020-03-07 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | let b: &str = a.deref().deref();
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try this: `&*a.deref()`
|
|
|
|
|
|
|
|
error: explicit deref method call
|
2020-03-21 13:34:56 -05:00
|
|
|
--> $DIR/dereference.rs:53:13
|
2020-03-07 08:33:27 -06:00
|
|
|
|
|
|
|
|
LL | let b = opt_a.unwrap().deref();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&*opt_a.unwrap()`
|
|
|
|
|
|
|
|
error: aborting due to 11 previous errors
|
2018-10-03 11:53:39 -05:00
|
|
|
|