1
Fork 0

improves duplicate label test

This commit is contained in:
Spencer 2025-03-13 18:07:37 -06:00
parent 9f06585c0e
commit 62075593a8
2 changed files with 4 additions and 1 deletions

View file

@ -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 main() {
fn test() { fn test() {
loop { loop {

View file

@ -1,5 +1,5 @@
error[E0381]: used binding `blah` is possibly-uninitialized 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>; LL | let blah: Option<String>;
| ---- binding declared here but left uninitialized | ---- binding declared here but left uninitialized