blob: 84a85caa65df31898c3eb6313228d723fe58d24e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//! Regression test for duplicated label in E0381 error message.
//!
//! Issue: <https://github.com/rust-lang/rust/issues/129274>
fn main() {
fn test() {
loop {
let blah: Option<String>;
if true {
blah = Some("".to_string());
}
if let Some(blah) = blah.as_ref() { //~ ERROR E0381
}
}
}
println!("{:?}", test())
}
|