mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-11 22:43:42 +00:00
21 lines
221 B
Rust
21 lines
221 B
Rust
//@ check-pass
|
|
|
|
#![feature(fn_delegation)]
|
|
#![allow(incomplete_features)]
|
|
|
|
mod to_reuse {
|
|
pub fn a() {}
|
|
}
|
|
|
|
reuse to_reuse::a as b;
|
|
|
|
struct S;
|
|
impl S {
|
|
reuse to_reuse::a as b;
|
|
}
|
|
|
|
fn main() {
|
|
b();
|
|
S::b();
|
|
}
|