mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
13 lines
233 B
Rust
13 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() {}
|