rust/src/test/ui/issues/issue-17758.rs
2018-12-25 21:08:33 -07:00

13 lines
212 B
Rust

// Test that regionck suggestions in a provided method of a trait
// don't ICE
trait Foo<'a> {
fn foo(&'a self);
fn bar(&self) {
self.foo();
//~^ ERROR cannot infer
}
}
fn main() {}