]> git.lizzy.rs Git - rust.git/blob - tests/ui/create_dir.fixed
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / create_dir.fixed
1 // run-rustfix
2 #![allow(unused_must_use)]
3 #![warn(clippy::create_dir)]
4
5 use std::fs::create_dir_all;
6
7 fn create_dir() {}
8
9 fn main() {
10     // Should be warned
11     create_dir_all("foo");
12     create_dir_all("bar").unwrap();
13
14     // Shouldn't be warned
15     create_dir();
16     std::fs::create_dir_all("foobar");
17 }