syn
syn copied to clipboard
Parse unsafe binder types
- Tracking issue: https://github.com/rust-lang/rust/issues/130516
- Feature gate:
#![feature(unsafe_binders)]
fn foo() -> unsafe<'a> &'a () {}
struct Foo {
x: unsafe<'a> &'a (),
}
struct Bar(unsafe<'a> &'a ());
impl Trait for unsafe<'a> &'a () {}