mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
18 lines
214 B
Rust
18 lines
214 B
Rust
mod machine {
|
|
pub struct A {
|
|
pub b: B,
|
|
}
|
|
pub struct B {}
|
|
impl B {
|
|
pub fn f(&self) {}
|
|
}
|
|
}
|
|
|
|
pub struct Context {
|
|
pub a: machine::A,
|
|
}
|
|
|
|
pub fn ctx() -> Context {
|
|
todo!();
|
|
}
|