mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
12 lines
199 B
Rust
12 lines
199 B
Rust
//@ run-pass
|
|
//@ aux-build:issue-11508.rs
|
|
|
|
extern crate issue_11508 as rand;
|
|
|
|
use rand::{Closed01, random};
|
|
|
|
fn main() {
|
|
let Closed01(val) = random::<Closed01<f32>>();
|
|
println!("{}", val);
|
|
}
|