2024-03-15 14:21:03 +03:00
|
|
|
#![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
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-31 11:39:45 +01:00
|
|
|
extern "C" {
|
2024-03-15 14:21:03 +03:00
|
|
|
reuse Trait::*; //~ ERROR delegation is not supported in `extern` blocks
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
reuse Trait::*; //~ ERROR glob delegation is only supported in impls
|
|
|
|
|
}
|