]> git.lizzy.rs Git - rust.git/blob - tests/ui/unwrap_or.rs
Merge pull request #2984 from flip1995/single_char_pattern
[rust.git] / tests / ui / unwrap_or.rs
1 #![warn(clippy)]
2
3 fn main() {
4     let s = Some(String::from("test string")).unwrap_or("Fail".to_string()).len();
5 }
6
7 fn new_lines() {
8     let s = Some(String::from("test string"))
9         .unwrap_or("Fail".to_string())
10         .len();
11 }