mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +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 }
|
||
|
}
|