summaryrefslogtreecommitdiff
path: root/samples/test/zst_use.rs
blob: 17e75919267f0f912a45bd8da07c6e4eb14f5bed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-flags: --test

#[test]
fn zst_enum_variant() {
    #[inline(never)]
    fn takes_fn<F: Fn( () ) -> Option<()>>(f: F) {
        f( () );
    }

    takes_fn( Option::Some );
}