rust/tests/ui/needless_option_take.rs
infrandomness 8b2b343b23 Delete unused variable y in test
This fixes the errors occuring while running the ui tests
2022-04-14 13:16:06 +02:00

8 lines
124 B
Rust

// run-rustfix
fn main() {
println!("Testing option_take_on_temporary");
let x = Some(3);
x.as_ref().take();
}