Sign in
rust
/
rust
/
a5a286df89146c64afebc6dcbbd3f61ba67ae53b
/
.
/
tests
/
ui
/
unsafe-binders
/
type-mismatch.rs
blob: 22937bb09e82727d4f65f84508f7080217a6b96d [
file
]
#![
feature
(
unsafe_binders
)]
fn
main
()
{
let
x
:
unsafe
<>
i32
=
0
;
//~^ ERROR mismatched types
let
x
:
unsafe
<
'a> &'
a i32
=
&
0
;
//~^ ERROR mismatched types
}