]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-65611.stderr
905c5ae9461d04be6d386d981f60a5225e21cede
[rust.git] / src / test / ui / issues / issue-65611.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/issue-65611.rs:59:20
3    |
4 LL |     let x = buffer.last().unwrap().0.clone();
5    |                    ^^^^
6    |                    |
7    |                    cannot infer type for `T`
8    |                    help: consider specifying the type argument in the method call: `last::<_>`
9    |
10    = note: type must be known at this point
11
12 error[E0609]: no field `0` on type `&_`
13   --> $DIR/issue-65611.rs:59:36
14    |
15 LL |     let x = buffer.last().unwrap().0.clone();
16    |                                    ^
17
18 error: aborting due to 2 previous errors
19
20 Some errors have detailed explanations: E0282, E0609.
21 For more information about an error, try `rustc --explain E0282`.