diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/traits/next-solver/array-default.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/traits/next-solver/array-default.rs b/tests/ui/traits/next-solver/array-default.rs new file mode 100644 index 000000000..6bfbce7d4 --- /dev/null +++ b/tests/ui/traits/next-solver/array-default.rs @@ -0,0 +1,8 @@ +// compile-flags: -Znext-solver +// check-pass + +fn has_default<const N: usize>() where [(); N]: Default {} + +fn main() { + has_default::<1>(); +} |