mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-15 08:23:26 +00:00
21 lines
436 B
Rust
21 lines
436 B
Rust
![]() |
#![feature(fn_delegation)]
|
||
|
#![allow(incomplete_features)]
|
||
|
|
||
|
trait Trait {
|
||
|
fn method() {}
|
||
|
}
|
||
|
|
||
|
reuse Trait::*; //~ ERROR glob delegation is only supported in impls
|
||
|
|
||
|
trait OtherTrait {
|
||
|
reuse Trait::*; //~ ERROR glob delegation is only supported in impls
|
||
|
}
|
||
|
|
||
|
extern {
|
||
|
reuse Trait::*; //~ ERROR delegation is not supported in `extern` blocks
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
reuse Trait::*; //~ ERROR glob delegation is only supported in impls
|
||
|
}
|