rust/tests/ui/generics/param-in-ct-in-ty-param-default.rs

5 lines
137 B
Rust
Raw Normal View History

struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
2020-11-17 11:44:21 +01:00
//~^ ERROR generic parameters may not be used in const operations
fn main() {}