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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
137 B
Rust
Raw Normal View History

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