1
Fork 0

Add tracking issue for file_create_new

This commit is contained in:
Andrius Pukšta 2022-12-01 17:42:31 +02:00 committed by GitHub
parent 9c0bc3028a
commit 0af5b7265d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -401,7 +401,7 @@ impl File {
/// Ok(())
/// }
/// ```
#[unstable(feature = "file_create_new", issue = "none")]
#[unstable(feature = "file_create_new", issue = "105135")]
pub fn create_new<P: AsRef<Path>>(path: P) -> io::Result<File> {
OpenOptions::new().read(true).write(true).create_new(true).open(path.as_ref())
}