navid/haze / cb1bac46fbd9fca0f0e2a401590740b0840b47821983a25743fc29c1572577d9 / samples/baseline_2.8/generic_bare_param_error.hz

generic_bare_param_error.hz

← samples/baseline_2.8 · 163 bytes · raw · download

// A bare generic type cannot be used as a parameter type.

type Pair[A, B] {
    first A
    second B
}

fn use_pair(p Pair) i32 => 1

fn main() {
    print(1)
}