summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-11508.rs
blob: 49868b73efa2215c431b60ad1f7d3cceb0fdacb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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);
}