Files
rust/src/test/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
317 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 {
//~^ NOTE type must outlive the empty lifetime as required by this binding
}
fn main() {
foo(&10);
//~^ ERROR the type `&'b ()` does not fulfill the required lifetime
}