blob: e5f9fa1cf4934260c2be14de1ef0d9085423f05b [file] [log] [blame] [edit]
#![allow(incomplete_features)]
#![feature(fn_delegation)]
trait Trait {
fn static_method2(x: i32, y: i32) -> i32 {
x + y
}
}
struct S;
impl Trait for S {}
pub fn main() {
'foo: loop {
reuse <S as Trait>::static_method2 { loop { break 'foo; } }
//~^ ERROR use of unreachable label `'foo`
}
}