summaryrefslogtreecommitdiffstats
path: root/tests/ui/invalid-compile-flags/fuel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/invalid-compile-flags/fuel.rs')
-rw-r--r--tests/ui/invalid-compile-flags/fuel.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/invalid-compile-flags/fuel.rs b/tests/ui/invalid-compile-flags/fuel.rs
new file mode 100644
index 000000000..456bc47d3
--- /dev/null
+++ b/tests/ui/invalid-compile-flags/fuel.rs
@@ -0,0 +1,11 @@
+// revisions: incremental threads
+// dont-check-compiler-stderr
+//
+// [threads] compile-flags: -Zfuel=a=1 -Zthreads=2
+// [threads] error-pattern:optimization fuel is incompatible with multiple threads
+//
+// [incremental] incremental
+// [incremental] compile-flags: -Zprint-fuel=a
+// [incremental] error-pattern:optimization fuel is incompatible with incremental compilation
+
+fn main() {}