Add feature gate test for --env
flag
This commit is contained in:
parent
37d68093da
commit
d2b1f94f05
2 changed files with 5 additions and 0 deletions
3
tests/ui/feature-gates/env-flag.rs
Normal file
3
tests/ui/feature-gates/env-flag.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
// compile-flags: --env A=B
|
||||||
|
|
||||||
|
fn main() {}
|
2
tests/ui/feature-gates/env-flag.stderr
Normal file
2
tests/ui/feature-gates/env-flag.stderr
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
error: the `-Z unstable-options` flag must also be passed to enable the flag `env`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue