mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
19 lines
308 B
Plaintext
19 lines
308 B
Plaintext
#[prelude_import]
|
|
use ::std::prelude::rust_2015::*;
|
|
#[macro_use]
|
|
extern crate std;
|
|
//@ compile-flags: -Zunpretty=hir
|
|
//@ check-pass
|
|
|
|
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) { }
|
|
}
|