]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-93486.rs
Rollup merge of #107194 - xfix:remove-slice-internals-dependency-in-rustc-ast, r...
[rust.git] / tests / ui / typeck / issue-93486.rs
1 fn main() {
2     while let 1 = 1 {
3         vec![].last_mut().unwrap() = 3_u8;
4         //~^ ERROR invalid left-hand side of assignment
5     }
6 }