summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/issues/issue-80062.rs
blob: 56dc53298fb359f84f8958ee66610ed0c26cffab (plain)
1
2
3
4
5
6
7
8
9
10
// Regression test for issue #80062 (fixed by `min_const_generics`)

fn sof<T>() -> T { unimplemented!() }

fn test<T>() {
    let _: [u8; sof::<T>()];
    //~^ ERROR generic parameters may not be used in const operations
}

fn main() {}