summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/const_arg_in_type_position.rs
blob: 4969e8d195fb314bbd73556cd103374f6be643fe (plain)
1
2
3
4
5
6
type Array<T, const N: usize> = [T; N];

fn foo<const N: usize>() -> Array<N, ()> {
    //~^ ERROR constant provided when a type was expected
    unimplemented!()
}