rust-clippy/tests/ui/unwrap_or.rs
2019-01-08 21:46:39 +01:00

9 lines
223 B
Rust

#![warn(clippy::all)]
fn main() {
let s = Some(String::from("test string")).unwrap_or("Fail".to_string()).len();
}
fn new_lines() {
let s = Some(String::from("test string")).unwrap_or("Fail".to_string()).len();
}