Skip to content

Commit 0866ccf

Browse files
committed
documented/fixed error-codes/E0381-duplicated-label.rs
1 parent fd1a784 commit 0866ccf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
//! Test for a bug in the error message handling that duplicated part of the message
1+
//! Regression test for duplicated label in E0381 error message.
22
//!
3+
//! Error: E0381
34
//! Issue: <https://github.com/rust-lang/rust/issues/129274>
45
fn main() {
56
fn test() {

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/E0381-duplicated-label.rs:11:33
2+
--> $DIR/E0381-duplicated-label.rs:12:33
33
|
44
LL | let blah: Option<String>;
55
| ---- binding declared here but left uninitialized

0 commit comments

Comments
 (0)