diff options
Diffstat (limited to 'tests/ui/trait-bounds/argument-with-unnecessary-method-call.stderr')
| -rw-r--r-- | tests/ui/trait-bounds/argument-with-unnecessary-method-call.stderr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/trait-bounds/argument-with-unnecessary-method-call.stderr b/tests/ui/trait-bounds/argument-with-unnecessary-method-call.stderr index 49230c98a12..7d795581ea9 100644 --- a/tests/ui/trait-bounds/argument-with-unnecessary-method-call.stderr +++ b/tests/ui/trait-bounds/argument-with-unnecessary-method-call.stderr @@ -14,8 +14,9 @@ LL | fn qux(_: impl From<Bar>) {} | ^^^^^^^^^ required by this bound in `qux` help: try using a fully qualified path to specify the expected types | -LL | qux(<Bar as Into<T>>::into(Bar)); - | +++++++++++++++++++++++ ~ +LL - qux(Bar.into()); +LL + qux(<Bar as Into<T>>::into(Bar)); + | help: consider removing this method call, as the receiver has type `Bar` and `Bar: From<Bar>` trivially holds | LL - qux(Bar.into()); |
