rust/tests/ui/issues/issue-17746.rs

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

26 lines
289 B
Rust
Raw Normal View History

// check-pass
#![allow(dead_code)]
2015-03-31 18:22:23 -05:00
// Regression test for #17746
fn main() {}
struct A;
impl A {
fn b(&mut self) {
self.a()
}
}
trait Foo {
fn dummy(&self) {}
}
trait Bar {
fn a(&self);
}
impl Foo for A {}
impl<T> Bar for T where T: Foo {
fn a(&self) {}
}