rust/tests/ui/issues/issue-17758.rs
2023-01-11 09:32:08 +00:00

12 lines
233 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 lifetime may not live long enough
}
}
fn main() {}