rust/tests/ui/issues/issue-3979-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
213 B
Rust
Raw Normal View History

// check-pass
// pretty-expanded FIXME #23616
trait A {
2013-06-22 18:43:15 +00:00
fn a_method(&self);
}
trait B: A {
2013-06-22 18:43:15 +00:00
fn b_method(&self);
}
trait C: B {
2013-06-22 18:43:15 +00:00
fn c_method(&self) {
self.a_method();
}
}
pub fn main() {}