]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-55344.rs
Auto merge of #105145 - Ayush1325:sequential-remote-server, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / issue-55344.rs
1 // check-pass
2
3 #![deny(unused_mut)]
4
5 pub fn foo() {
6     return;
7
8     let mut v = 0;
9     assert_eq!(v, 0);
10     v = 1;
11     assert_eq!(v, 1);
12 }
13
14 fn main() {}