make sure opening a file fails with isolation enabled
This commit is contained in:
parent
1edd231065
commit
da2260db44
1 changed files with 6 additions and 0 deletions
6
tests/compile-fail/fs/isolated_file.rs
Normal file
6
tests/compile-fail/fs/isolated_file.rs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// ignore-windows: File handling is not implemented yet
|
||||
// error-pattern: `open` not available when isolation is enabled
|
||||
|
||||
fn main() {
|
||||
let _file = std::fs::File::open("file.txt").unwrap();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue