rust-clippy/tests/ui/unwrap_or.rs
2018-08-29 11:08:29 -07:00

12 lines
265 B
Rust

#![feature(tool_lints)]
#![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();
}