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