about summary refs log tree commit diff
path: root/tests/ui/compiletest-self-test/ui-test-missing-annotations-detection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/compiletest-self-test/ui-test-missing-annotations-detection.rs')
-rw-r--r--tests/ui/compiletest-self-test/ui-test-missing-annotations-detection.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/compiletest-self-test/ui-test-missing-annotations-detection.rs b/tests/ui/compiletest-self-test/ui-test-missing-annotations-detection.rs
new file mode 100644
index 00000000000..3a110bdad35
--- /dev/null
+++ b/tests/ui/compiletest-self-test/ui-test-missing-annotations-detection.rs
@@ -0,0 +1,9 @@
+//! Regression test checks UI tests without error annotations are detected as failing.
+//!
+//! This tests that when we forget to use any `//~ ERROR` comments whatsoever,
+//! the test doesn't succeed
+//! Originally created in https://github.com/rust-lang/rust/pull/56244
+
+//@ should-fail
+
+fn main() {}