blob: d0dbd3455df782b34c871696b1c2a337fa937bb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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() {}
|