mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 14:48:04 +00:00
Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
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() {
|
|
}
|