mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 16:53:39 +00:00
18 lines
154 B
Rust
18 lines
154 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
|
|
struct Foo {
|
|
x: isize,
|
|
}
|
|
|
|
impl Foo {
|
|
pub fn f(&self) {}
|
|
}
|
|
|
|
fn g(x: &mut Foo) {
|
|
x.f();
|
|
}
|
|
|
|
pub fn main() {
|
|
}
|