diff options
Diffstat (limited to 'src/test/ui/error-codes/E0730.rs')
-rw-r--r-- | src/test/ui/error-codes/E0730.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0730.rs b/src/test/ui/error-codes/E0730.rs new file mode 100644 index 000000000..04f5e5d42 --- /dev/null +++ b/src/test/ui/error-codes/E0730.rs @@ -0,0 +1,8 @@ +fn is_123<const N: usize>(x: [u32; N]) -> bool { + match x { + [1, 2, ..] => true, //~ ERROR cannot pattern-match on an array without a fixed length + _ => false + } +} + +fn main() {} |