cfail test for std::env::args()
This commit is contained in:
parent
6376ef4228
commit
4f48bef896
6
tests/compile-fail/env_args.rs
Normal file
6
tests/compile-fail/env_args.rs
Normal file
@ -0,0 +1,6 @@
|
||||
//error-pattern: no mir for `std
|
||||
|
||||
fn main() {
|
||||
let x = std::env::args();
|
||||
assert_eq!(x.count(), 1);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user