diff options
Diffstat (limited to 'tests/ui/mir/auxiliary/mir_external_refs.rs')
-rw-r--r-- | tests/ui/mir/auxiliary/mir_external_refs.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/mir/auxiliary/mir_external_refs.rs b/tests/ui/mir/auxiliary/mir_external_refs.rs new file mode 100644 index 000000000..9fd58f1d7 --- /dev/null +++ b/tests/ui/mir/auxiliary/mir_external_refs.rs @@ -0,0 +1,17 @@ +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 } |