rust/tests/ui/delegation/ice-issue-124347.rs
2024-10-24 09:46:36 +00:00

14 lines
327 B
Rust

#![feature(fn_delegation)]
#![allow(incomplete_features)]
// FIXME(fn_delegation): `recursive delegation` error should be emitted here
trait Trait {
reuse Trait::foo { &self.0 }
//~^ ERROR recursive delegation is not supported yet
}
reuse foo;
//~^ ERROR cycle detected when computing generics of `foo`
fn main() {}