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

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

10 lines
157 B
Rust
Raw Normal View History

2014-10-25 22:07:41 +00:00
trait T<'a> {
fn a(&'a self) -> &'a bool;
fn b(&self) {
2022-05-22 05:02:55 +00:00
self.a();
2022-04-01 17:13:25 +00:00
//~^ ERROR lifetime may not live long enough
2014-10-25 22:07:41 +00:00
}
}
fn main() {}