Skip to content

Commit

Permalink
Add feature gate test for --env flag
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 10, 2023
1 parent 37d6809 commit d2b1f94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ui/feature-gates/env-flag.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// compile-flags: --env A=B

fn main() {}
2 changes: 2 additions & 0 deletions tests/ui/feature-gates/env-flag.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
error: the `-Z unstable-options` flag must also be passed to enable the flag `env`

0 comments on commit d2b1f94

Please sign in to comment.