Files
rust/tests/ui/create_dir.fixed
Guillaume Gomez f666fd6417 Update UI tests
2025-02-15 13:38:16 +01:00

19 lines
333 B
Rust

#![allow(unused_must_use)]
#![warn(clippy::create_dir)]
use std::fs::create_dir_all;
fn create_dir() {}
fn main() {
// Should be warned
create_dir_all("foo");
//~^ create_dir
create_dir_all("bar").unwrap();
//~^ create_dir
// Shouldn't be warned
create_dir();
std::fs::create_dir_all("foobar");
}