Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
editions
/
edition-raw-pointer-method-2018.rs
blob: ad47553d5b7a2b2b604f313932f6f2b5da1fdaf9 [
file
] [
log
] [
blame
]
//@ edition:2018
// tests that editions work with the tyvar warning-turned-error
#[
deny
(
warnings
)]
fn
main
()
{
let
x
=
0
;
let
y
=
&
x
as
*
const
_
;
//~^ error: type annotations needed
let
_
=
y
.
is_null
();
}