]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-65611.stderr
Use the appropriate number of type arguments in suggestion
[rust.git] / src / test / ui / issues / issue-65611.stderr
index 905c5ae9461d04be6d386d981f60a5225e21cede..3be08b233e470acafffbd1dfbcab06ada41b4e6a 100644 (file)
@@ -2,10 +2,10 @@ error[E0282]: type annotations needed
   --> $DIR/issue-65611.rs:59:20
    |
 LL |     let x = buffer.last().unwrap().0.clone();
-   |                    ^^^^
-   |                    |
-   |                    cannot infer type for `T`
-   |                    help: consider specifying the type argument in the method call: `last::<_>`
+   |             -------^^^^--
+   |             |      |
+   |             |      cannot infer type for `T`
+   |             this method call resolves to `std::option::Option<&T>`
    |
    = note: type must be known at this point