rust/tests/ui/unsafe-binders/lifetime-resolution.rs
Michael Goulet c5d02237d3 Add tests
2024-12-12 16:29:40 +00:00

20 lines
541 B
Rust

#![feature(unsafe_binders)]
//~^ WARN the feature `unsafe_binders` is incomplete
fn foo<'a>() {
let good: unsafe<'b> &'a &'b ();
//~^ ERROR unsafe binders are not yet implemented
let missing: unsafe<> &'missing ();
//~^ ERROR unsafe binders are not yet implemented
//~| ERROR use of undeclared lifetime name `'missing`
fn inner<'b>() {
let outer: unsafe<> &'a &'b ();
//~^ ERROR unsafe binders are not yet implemented
//~| can't use generic parameters from outer item
}
}
fn main() {}