mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
17 lines
317 B
Rust
17 lines
317 B
Rust
//@ 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();
|
|
}
|