]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-65611.stderr
Rollup merge of #100220 - scottmcm:fix-by-ref-sized, r=joshtriplett
[rust.git] / src / test / ui / typeck / issue-65611.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/issue-65611.rs:59:13
3    |
4 LL |     let x = buffer.last().unwrap().0.clone();
5    |             ^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `T`
6
7 error[E0609]: no field `0` on type `&_`
8   --> $DIR/issue-65611.rs:59:36
9    |
10 LL |     let x = buffer.last().unwrap().0.clone();
11    |                                    ^
12
13 error: aborting due to 2 previous errors
14
15 Some errors have detailed explanations: E0282, E0609.
16 For more information about an error, try `rustc --explain E0282`.