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