//! Regression test for duplicated label in E0381 error message. //! //! Issue: fn main() { fn test() { loop { let blah: Option; if true { blah = Some("".to_string()); } if let Some(blah) = blah.as_ref() { //~ ERROR E0381 } } } println!("{:?}", test()) }