rust/tests/ui/lifetimes/re-empty-in-error.rs

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

11 lines
240 B
Rust
Raw Normal View History

// We didn't have a single test mentioning
// `ReEmpty` and this test changes that.
fn foo<'a>(_a: &'a u32) where for<'b> &'b (): 'a {
}
fn main() {
foo(&10);
2022-04-01 12:13:25 -05:00
//~^ ERROR higher-ranked lifetime error
//~| NOTE could not prove
}