rust/tests/ui/unnecessary_literal_unwrap_unfixable.rs
2023-06-12 16:19:26 +01:00

7 lines
113 B
Rust

#![warn(clippy::unnecessary_literal_unwrap)]
fn main() {
let val = Some(1);
let _val2 = val.unwrap();
}