summaryrefslogtreecommitdiffstats
path: root/tests/ui/instrument-xray/flags-always-never-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/instrument-xray/flags-always-never-1.rs')
-rw-r--r--tests/ui/instrument-xray/flags-always-never-1.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/instrument-xray/flags-always-never-1.rs b/tests/ui/instrument-xray/flags-always-never-1.rs
new file mode 100644
index 000000000..4dd43439e
--- /dev/null
+++ b/tests/ui/instrument-xray/flags-always-never-1.rs
@@ -0,0 +1,7 @@
+// Checks that `-Z instrument-xray` does not allow `always` and `never` simultaneously.
+//
+// needs-xray
+// compile-flags: -Z instrument-xray=always,never
+// error-pattern: incorrect value `always,never` for unstable option `instrument-xray`
+
+fn main() {}