]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/if_not_else.rs
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / if_not_else.rs
index 9436af70cb8f6524ce1c7a2e13f3f5dc31158a57..0179381fdc3d8a42e6eaca351e558aac263f268d 100644 (file)
@@ -1,9 +1,18 @@
+// 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::all)]
+#![warn(clippy::if_not_else)]
 
-#![warn(clippy)]
-#![warn(if_not_else)]
-
-fn bla() -> bool { unimplemented!() }
+fn bla() -> bool {
+    unimplemented!()
+}
 
 fn main() {
     if !bla() {