mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
17 lines
194 B
Rust
17 lines
194 B
Rust
//@ known-bug: #127916
|
|
|
|
trait Trait {
|
|
fn foo(&self) -> u32 { 0 }
|
|
}
|
|
|
|
struct F;
|
|
struct S;
|
|
|
|
mod to_reuse {
|
|
pub fn foo(&self) -> u32 {}
|
|
}
|
|
|
|
impl Trait S {
|
|
reuse to_reuse::foo { self }
|
|
}
|