rust/tests/ui/delegation/ice-issue-124347.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
340 B
Rust
Raw Normal View History

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