Skip to content

Commit c1ddffb

Browse files
committed
describe E0381-duplicated-label.rs
1 parent dfeb133 commit c1ddffb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/ui/error-codes/E0381-duplicated-label.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Test for a bug in the error message handling that duplicated part of the message
2+
//!
3+
//! Issue: <https://github.com/rust-lang/rust/issues/129274>
14
fn main() {
25
fn test() {
36
loop {

tests/ui/error-codes/E0381-duplicated-label.stderr

Lines changed: 1 addition & 1 deletion
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:8:33
33
|
44
LL | let blah: Option<String>;
55
| ---- binding declared here but left uninitialized

0 commit comments

Comments
 (0)