diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/generics/param-in-ct-in-ty-param-default.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/generics/param-in-ct-in-ty-param-default.rs b/src/test/ui/generics/param-in-ct-in-ty-param-default.rs new file mode 100644 index 000000000..3c62e4738 --- /dev/null +++ b/src/test/ui/generics/param-in-ct-in-ty-param-default.rs @@ -0,0 +1,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() {} |