diff options
| author | dianqk <dianqk@dianqk.net> | 2025-06-30 19:23:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-30 19:23:17 +0800 |
| commit | 0952f86de31f90b0e9f2bc700243fcc711990aa9 (patch) | |
| tree | 3fd1ced5b745ab0c85c5b6a5d9fe26e69d7319d9 /tests/ui/compiletest-self-test/ui-test-missing-annotations-detection.rs | |
| parent | a94f0a4af8a1c11c1934ee8ba44d59fb5da77d4b (diff) | |
| parent | 580bc128441236345a5f3d5022af5a60091451ac (diff) | |
| download | rust-0952f86de31f90b0e9f2bc700243fcc711990aa9.tar.gz rust-0952f86de31f90b0e9f2bc700243fcc711990aa9.zip | |
Rollup merge of #143118 - Kivooeo:tf15, r=tgross35
`tests/ui`: A New Order [15/N] > [!NOTE] > > Intermediate commits are intended to help review, but will be squashed prior to merge. Some `tests/ui/` housekeeping, to trim down number of tests directly under `tests/ui/`. Part of rust-lang/rust#133895. r? `@jieyouxu`
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.rs | 9 |
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() {} |
