diff options
| author | Spencer <spencer3035@gmail.com> | 2025-03-13 18:07:37 -0600 |
|---|---|---|
| committer | Spencer <spencer3035@gmail.com> | 2025-03-15 10:52:07 -0600 |
| commit | 62075593a8077ef7fb123ab6f36522b526b93e47 (patch) | |
| tree | 5b3b9167dc4f86150a6346bcc303556dba362023 | |
| parent | 9f06585c0e93f835c9e0ceb199d71b8f5679d9d1 (diff) | |
| download | rust-62075593a8077ef7fb123ab6f36522b526b93e47.tar.gz rust-62075593a8077ef7fb123ab6f36522b526b93e47.zip | |
improves duplicate label test
| -rw-r--r-- | tests/ui/error-codes/E0381-duplicated-label.rs (renamed from tests/ui/duplicate-label-E0381-issue-129274.rs) | 3 | ||||
| -rw-r--r-- | tests/ui/error-codes/E0381-duplicated-label.stderr (renamed from tests/ui/duplicate-label-E0381-issue-129274.stderr) | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/ui/duplicate-label-E0381-issue-129274.rs b/tests/ui/error-codes/E0381-duplicated-label.rs index b2156e630c8..84a85caa65d 100644 --- a/tests/ui/duplicate-label-E0381-issue-129274.rs +++ b/tests/ui/error-codes/E0381-duplicated-label.rs @@ -1,3 +1,6 @@ +//! Regression test for duplicated label in E0381 error message. +//! +//! Issue: <https://github.com/rust-lang/rust/issues/129274> fn main() { fn test() { loop { diff --git a/tests/ui/duplicate-label-E0381-issue-129274.stderr b/tests/ui/error-codes/E0381-duplicated-label.stderr index 7f8bddb17c5..36e6d966f09 100644 --- a/tests/ui/duplicate-label-E0381-issue-129274.stderr +++ b/tests/ui/error-codes/E0381-duplicated-label.stderr @@ -1,5 +1,5 @@ error[E0381]: used binding `blah` is possibly-uninitialized - --> $DIR/duplicate-label-E0381-issue-129274.rs:8:33 + --> $DIR/E0381-duplicated-label.rs:11:33 | LL | let blah: Option<String>; | ---- binding declared here but left uninitialized |
