mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 11:05:06 +00:00
20 lines
541 B
Rust
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() {}
|