]> git.lizzy.rs Git - rust.git/blob - tests/ui/unwrap_or.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / unwrap_or.rs
1 #![feature(tool_lints)]
2 #![warn(clippy::all)]
3
4 fn main() {
5     let s = Some(String::from("test string")).unwrap_or("Fail".to_string()).len();
6 }
7
8 fn new_lines() {
9     let s = Some(String::from("test string"))
10         .unwrap_or("Fail".to_string())
11         .len();
12 }