]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/create_dir.fixed
Auto merge of #104889 - GuillaumeGomez:fix-impl-block-in-const-expr, r=notriddle
[rust.git] / src / tools / clippy / 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 }