]> git.lizzy.rs Git - rust.git/blob - src/test/ui/editions/edition-raw-pointer-method-2018.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / editions / edition-raw-pointer-method-2018.rs
1 // ignore-tidy-linelength
2 // edition:2018
3
4 // tests that editions work with the tyvar warning-turned-error
5
6 #[deny(warnings)]
7 fn main() {
8     let x = 0;
9     let y = &x as *const _;
10     let _ = y.is_null();
11     //~^ error: the type of this value must be known to call a method on a raw pointer on it [E0699]
12 }