rust/tests/ui/mir/auxiliary/mir_external_refs.rs
2023-01-11 09:32:08 +00:00

18 lines
189 B
Rust

pub struct S(pub u8);
impl S {
pub fn hey() -> u8 { 24 }
}
pub trait X {
fn hoy(&self) -> u8 { 25 }
}
impl X for S {}
pub enum E {
U(u8)
}
pub fn regular_fn() -> u8 { 12 }