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 17:13:25 +00:00
//~^ ERROR higher-ranked lifetime error
//~| NOTE could not prove
}