Skip to content

Commit d2b1f94

Browse files
Add feature gate test for --env flag
1 parent 37d6809 commit d2b1f94

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/ui/feature-gates/env-flag.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// compile-flags: --env A=B
2+
3+
fn main() {}
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
error: the `-Z unstable-options` flag must also be passed to enable the flag `env`
2+

0 commit comments

Comments
 (0)