diff options
Diffstat (limited to 'tests/ui/consts/const-prop-ice.rs')
-rw-r--r-- | tests/ui/consts/const-prop-ice.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/consts/const-prop-ice.rs b/tests/ui/consts/const-prop-ice.rs new file mode 100644 index 000000000..5bffe0206 --- /dev/null +++ b/tests/ui/consts/const-prop-ice.rs @@ -0,0 +1,5 @@ +// build-fail + +fn main() { + [0; 3][3u64 as usize]; //~ ERROR this operation will panic at runtime +} |