blob: 39cf4ae64185763657f218f587cc196bf9210cc3 [file] [log] [blame] [edit]
//! regression test for https://github.com/rust-lang/rust/issues/17758
//! 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 lifetime may not live long enough
}
}
fn main() {}