mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 02:24:35 +00:00
4838c78ba4
Locals which can be partially moved created within the to-be-created closure shouldn't block the use of a closure
11 lines
175 B
Rust
11 lines
175 B
Rust
// run-rustfix
|
|
|
|
#![warn(clippy::manual_map)]
|
|
|
|
fn main() {
|
|
let _ = Some(0).map(|x| {
|
|
let y = (String::new(), String::new());
|
|
(x, y.0)
|
|
});
|
|
}
|