rust/tests/ui/unpretty/self-hir.rs
Lukas Wirth 20ab952b4d Explicitly annotate edition for unpretty=expanded and unpretty=hir tests
These emit prelude imports which means they are always edition dependent
2025-04-16 11:10:10 +02:00

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) {}
}