fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
564 B18 linesraw
1error[E0282]: type annotations needed
2  --> $DIR/issue-65611.rs:59:20
3   |
4LL |     let x = buffer.last().unwrap().0.clone();
5   |                    ^^^^ cannot infer type for `T`
6   |
7   = note: type must be known at this point
8
9error[E0609]: no field `0` on type `&_`
10  --> $DIR/issue-65611.rs:59:36
11   |
12LL |     let x = buffer.last().unwrap().0.clone();
13   |                                    ^
14
15error: aborting due to 2 previous errors
16
17Some errors have detailed explanations: E0282, E0609.
18For more information about an error, try `rustc --explain E0282`.