]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/verbose_file_reads.rs
Auto merge of #6304 - matthiaskrgr:crash_6302, r=llogiq
[rust.git] / tests / ui / verbose_file_reads.rs
index 3c7c4be84b0cfd00a773cbc118340b7d99a532f6..e0065e05ade62d31ba9c21f7fe8b75f2b368d973 100644 (file)
@@ -12,9 +12,7 @@ pub fn read_to_string(&self) {}
 }
 
 fn main() -> std::io::Result<()> {
-    let mut path = temp_dir();
-    path.push("test.txt");
-    let file = File::create(&path)?;
+    let path = "foo.txt";
     // Lint shouldn't catch this
     let s = Struct;
     s.read_to_end();