diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-11-27 14:48:11 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-12-10 14:25:57 +0100 |
| commit | d2b1f94f05ca09571e264f9f044a48ced26433f9 (patch) | |
| tree | 832a7f167e6e344d81b64d4ad5b2b172eb83a586 | |
| parent | 37d68093da7c3b35d5516d3cbe966b2c0d0d17c2 (diff) | |
| download | rust-d2b1f94f05ca09571e264f9f044a48ced26433f9.tar.gz rust-d2b1f94f05ca09571e264f9f044a48ced26433f9.zip | |
Add feature gate test for `--env` flag
| -rw-r--r-- | tests/ui/feature-gates/env-flag.rs | 3 | ||||
| -rw-r--r-- | tests/ui/feature-gates/env-flag.stderr | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/env-flag.rs b/tests/ui/feature-gates/env-flag.rs new file mode 100644 index 00000000000..9dfda2584fb --- /dev/null +++ b/tests/ui/feature-gates/env-flag.rs @@ -0,0 +1,3 @@ +// compile-flags: --env A=B + +fn main() {} diff --git a/tests/ui/feature-gates/env-flag.stderr b/tests/ui/feature-gates/env-flag.stderr new file mode 100644 index 00000000000..5cb18cef9fb --- /dev/null +++ b/tests/ui/feature-gates/env-flag.stderr @@ -0,0 +1,2 @@ +error: the `-Z unstable-options` flag must also be passed to enable the flag `env` + |
