]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/issue-55344.rs
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / 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() {}