improves duplicate label test
This commit is contained in:
parent
9f06585c0e
commit
62075593a8
2 changed files with 4 additions and 1 deletions
|
@ -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 {
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue