Don't allow adjustments for manual_map

This commit is contained in:
Jason Newcomb 2021-04-15 10:37:42 -04:00
parent b1c675f3fc
commit 779d98f6cc
No known key found for this signature in database
GPG key ID: DA59E8643A37ED06
3 changed files with 20 additions and 0 deletions

View file

@ -146,4 +146,11 @@ fn main() {
None => None,
};
}
// #7077
let s = &String::new();
let _: Option<&str> = match Some(s) {
Some(s) => Some(s),
None => None,
};
}

View file

@ -212,4 +212,11 @@ fn main() {
None => None,
};
}
// #7077
let s = &String::new();
let _: Option<&str> = match Some(s) {
Some(s) => Some(s),
None => None,
};
}