diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-3979-2.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-3979-2.rs b/src/test/ui/issues/issue-3979-2.rs new file mode 100644 index 000000000..4ec128a45 --- /dev/null +++ b/src/test/ui/issues/issue-3979-2.rs @@ -0,0 +1,18 @@ +// check-pass +// pretty-expanded FIXME #23616 + +trait A { + fn a_method(&self); +} + +trait B: A { + fn b_method(&self); +} + +trait C: B { + fn c_method(&self) { + self.a_method(); + } +} + +pub fn main() {} |