rust/tests/crashes/123810.rs

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

11 lines
181 B
Rust
Raw Normal View History

2024-04-16 23:01:07 +00:00
//@ known-bug: #123810
//@ compile-flags: -Zlint-mir
fn temp() -> (String, i32) {
(String::from("Hello"), 1)
}
fn main() {
let f = if true { &temp() } else { &temp() };
}