rust/tests/crashes/131294.rs

17 lines
317 B
Rust
Raw Permalink Normal View History

2024-10-09 08:34:45 -05:00
//@ known-bug: #131294
//@ compile-flags: -Zmir-opt-level=5 -Zvalidate-mir -Zcross-crate-inline-threshold=always
struct Rows;
impl Iterator for Rows {
type Item = String;
fn next() -> Option<Self::Item> {
std::fmt::format(format_args!("Hello world")).into()
}
}
fn main() {
Rows.next();
}