diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/consts/issue-32829.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/consts/issue-32829.rs b/src/test/ui/consts/issue-32829.rs new file mode 100644 index 000000000..25f323b98 --- /dev/null +++ b/src/test/ui/consts/issue-32829.rs @@ -0,0 +1,6 @@ +static S : u64 = { { panic!("foo"); 0 } }; +//~^ ERROR could not evaluate static initializer + +fn main() { + println!("{:?}", S); +} |