diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/consts/std/iter.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/consts/std/iter.rs b/src/test/ui/consts/std/iter.rs new file mode 100644 index 000000000..e9af781eb --- /dev/null +++ b/src/test/ui/consts/std/iter.rs @@ -0,0 +1,9 @@ +// run-pass + +const I: std::iter::Empty<u32> = std::iter::empty(); + +fn main() { + for i in I { + panic!("magical value creation: {}", i); + } +} |