2024-03-14 03:41:38 -05:00
|
|
|
//@ check-pass
|
|
|
|
|
|
|
|
#![feature(fn_delegation)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
mod to_reuse {
|
|
|
|
pub fn a() {}
|
2024-03-15 06:21:03 -05:00
|
|
|
pub fn b() {}
|
2024-03-14 03:41:38 -05:00
|
|
|
}
|
|
|
|
|
2024-03-15 06:21:03 -05:00
|
|
|
reuse to_reuse::a as x;
|
|
|
|
reuse to_reuse::{a as y, b as z};
|
2024-03-14 03:41:38 -05:00
|
|
|
|
|
|
|
struct S;
|
|
|
|
impl S {
|
2024-03-15 06:21:03 -05:00
|
|
|
reuse to_reuse::a as x;
|
|
|
|
reuse to_reuse::{a as y, b as z};
|
2024-03-14 03:41:38 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2024-03-15 06:21:03 -05:00
|
|
|
x();
|
|
|
|
y();
|
|
|
|
z();
|
|
|
|
S::x();
|
|
|
|
S::y();
|
|
|
|
S::z();
|
2024-03-14 03:41:38 -05:00
|
|
|
}
|