Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (10 sloc) 192 Bytes
// build-pass (FIXME(62277): could be check-pass?)
#![deny(unused_mut)]
pub fn foo() {
return;
let mut v = 0;
assert_eq!(v, 0);
v = 1;
assert_eq!(v, 1);
}
fn main() {}
You can’t perform that action at this time.