mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 13:27:35 +00:00
15 lines
225 B
Rust
15 lines
225 B
Rust
//@ compile-flags: -Zunpretty=hir
|
|
//@ check-pass
|
|
|
|
pub struct Bar {
|
|
a: String,
|
|
b: u8,
|
|
}
|
|
|
|
impl Bar {
|
|
fn imm_self(self) {}
|
|
fn mut_self(mut self) {}
|
|
fn refimm_self(&self) {}
|
|
fn refmut_self(&mut self) {}
|
|
}
|