rust/tests/ui/consts/std/iter.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
153 B
Rust
Raw Normal View History

// run-pass
const I: std::iter::Empty<u32> = std::iter::empty();
fn main() {
for i in I {
panic!("magical value creation: {}", i);
}
}