summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generics/param-in-ct-in-ty-param-default.rs
blob: 3c62e47381c0b7abc44519f1efc8329f73cb71ad (plain)
1
2
3
4
struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
//~^ ERROR generic parameters may not be used in const operations

fn main() {}