summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issues/issue-67375.rs
blob: 8b4b276bae0ba65ed5af74066ed724338da5ba86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// revisions: full min
#![cfg_attr(full, allow(incomplete_features))]
#![cfg_attr(full, feature(generic_const_exprs))]

struct Bug<T> {
    //[min]~^ ERROR parameter `T` is never used
    inner: [(); { [|_: &T| {}; 0].len() }],
    //[min]~^ ERROR generic parameters may not be used in const operations
    //[full]~^^ ERROR overly complex generic constant
}

fn main() {}