about summary refs log tree commit diff
path: root/tests/ui/compiletest-self-test/ui-testing-optout.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/compiletest-self-test/ui-testing-optout.rs')
-rw-r--r--tests/ui/compiletest-self-test/ui-testing-optout.rs94
1 files changed, 94 insertions, 0 deletions
diff --git a/tests/ui/compiletest-self-test/ui-testing-optout.rs b/tests/ui/compiletest-self-test/ui-testing-optout.rs
new file mode 100644
index 00000000000..88e81158316
--- /dev/null
+++ b/tests/ui/compiletest-self-test/ui-testing-optout.rs
@@ -0,0 +1,94 @@
+// compile-flags: -Z ui-testing=no
+
+// Line number < 10
+type A = B; //~ ERROR
+
+// Line number >=10, <100
+type C = D; //~ ERROR
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// Line num >=100
+type E = F; //~ ERROR
+
+fn main() {}