Skip to content

Commit 6207559

Browse files
committed
improves duplicate label test
1 parent 9f06585 commit 6207559

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: tests/ui/duplicate-label-E0381-issue-129274.rs renamed to tests/ui/error-codes/E0381-duplicated-label.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Regression test for duplicated label in E0381 error message.
2+
//!
3+
//! Issue: <https://github.com/rust-lang/rust/issues/129274>
14
fn main() {
25
fn test() {
36
loop {

Diff for: tests/ui/duplicate-label-E0381-issue-129274.stderr renamed to tests/ui/error-codes/E0381-duplicated-label.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0381]: used binding `blah` is possibly-uninitialized
2-
--> $DIR/duplicate-label-E0381-issue-129274.rs:8:33
2+
--> $DIR/E0381-duplicated-label.rs:11:33
33
|
44
LL | let blah: Option<String>;
55
| ---- binding declared here but left uninitialized

0 commit comments

Comments
 (0)