rust/tests/ui/issues/issue-17758.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
233 B
Rust
Raw Normal View History

2014-10-04 00:37:08 -05:00
// 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();
2022-04-01 12:13:25 -05:00
//~^ ERROR lifetime may not live long enough
2014-10-04 00:37:08 -05:00
}
}
fn main() {}