about summary refs log tree commit diff
path: root/tests/ui/unsafe-binders/type-mismatch.rs
blob: 9ac4e817c28b33a484d22c210c9b0146aebe5c43 (plain)
1
2
3
4
5
6
7
8
9
#![feature(unsafe_binders)]
//~^ WARN the feature `unsafe_binders` is incomplete

fn main() {
    let x: unsafe<> i32 = 0;
    //~^ ERROR mismatched types
    let x: unsafe<'a> &'a i32 = &0;
    //~^ ERROR mismatched types
}