1
Fork 0
rust/src/test/ui/generics/param-in-ct-in-ty-param-default.rs

5 lines
132 B
Rust
Raw Normal View History

struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
//~^ ERROR constant values inside of type parameter defaults
fn main() {}