]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/cmp_null.rs
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / cmp_null.rs
index 03f0367a640f669e21b41c3e91add887c9cb87ee..2d2d04178c35d21bc04ed1d1526c9a4378563fde 100644 (file)
@@ -1,15 +1,3 @@
-// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-
-
-
 #![warn(clippy::cmp_null)]
 #![allow(unused_mut)]
 
 
 fn main() {
     let x = 0;
-    let p : *const usize = &x;
+    let p: *const usize = &x;
     if p == ptr::null() {
         println!("This is surprising!");
     }
     let mut y = 0;
-    let mut m : *mut usize = &mut y;
+    let mut m: *mut usize = &mut y;
     if m == ptr::null_mut() {
         println!("This is surprising, too!");
     }