]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unwrap_or.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / tools / clippy / tests / ui / unwrap_or.rs
1 #![warn(clippy::all)]
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")).unwrap_or("Fail".to_string()).len();
9 }