blob: ec6c95674677e7116532d9430c0025bafbc255df [file] [log] [blame] [edit]
//@ 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();
}