mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
14 lines
327 B
Rust
14 lines
327 B
Rust
#![feature(fn_delegation)]
|
|
#![allow(incomplete_features)]
|
|
|
|
trait Trait {
|
|
reuse Trait::foo { &self.0 }
|
|
//~^ ERROR recursive delegation is not supported yet
|
|
}
|
|
|
|
// FIXME(fn_delegation): `recursive delegation` error should be emitted here
|
|
reuse foo;
|
|
//~^ ERROR cycle detected when computing generics of `foo`
|
|
|
|
fn main() {}
|