]> git.lizzy.rs Git - rust.git/blobdiff - src/etc/test-float-parse/rand-f64.rs
Auto merge of #57118 - Zoxc:query-stats, r=wesleywiser
[rust.git] / src / etc / test-float-parse / rand-f64.rs
index 762c3d95ec6eb8e7255179cf73ef82a3ef8395b3..39ad63945cd11b3349a671beb419f7edbd6a7df9 100644 (file)
@@ -1,15 +1,3 @@
-// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// 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.
-
-#![feature(rand)]
-
 extern crate rand;
 
 mod _common;
@@ -25,7 +13,7 @@ fn main() {
         let bits = rnd.next_u64();
         let x: f64 = unsafe { transmute(bits) };
         if x.is_finite() {
-            validate(format!("{:e}", x));
+            validate(&format!("{:e}", x));
             i += 1;
         }
     }