mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
Avoid using the tests folder for the file manipualtion test
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
use std::io::{Read, Write};
|
||||
|
||||
fn main() {
|
||||
let path = "./tests/hello.txt";
|
||||
let path = "miri_test_fs.txt";
|
||||
let bytes = b"Hello, World!\n";
|
||||
// Test creating, writing and closing a file (closing is tested when `file` is dropped).
|
||||
let mut file = File::create(path).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user