diff options
Diffstat (limited to 'tests/ui/traits/composition-trivial.rs')
-rw-r--r-- | tests/ui/traits/composition-trivial.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/traits/composition-trivial.rs b/tests/ui/traits/composition-trivial.rs new file mode 100644 index 000000000..90e5dcd68 --- /dev/null +++ b/tests/ui/traits/composition-trivial.rs @@ -0,0 +1,12 @@ +// run-pass +// pretty-expanded FIXME #23616 + +trait Foo { + fn foo(&self); +} + +trait Bar : Foo { + fn bar(&self); +} + +pub fn main() {} |