diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-17252.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-17252.rs b/src/test/ui/issues/issue-17252.rs new file mode 100644 index 000000000..7141e4874 --- /dev/null +++ b/src/test/ui/issues/issue-17252.rs @@ -0,0 +1,10 @@ +const FOO: usize = FOO; //~ ERROR E0391 + +fn main() { + let _x: [u8; FOO]; // caused stack overflow prior to fix + let _y: usize = 1 + { + const BAR: usize = BAR; + let _z: [u8; BAR]; // caused stack overflow prior to fix + 1 + }; +} |