mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-29 15:48:52 +00:00
16 lines
243 B
Rust
16 lines
243 B
Rust
//@ compile-flags: -Zunpretty=hir
|
|
//@ check-pass
|
|
//@ edition: 2015
|
|
|
|
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) {}
|
|
}
|