mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
11 lines
276 B
Rust
11 lines
276 B
Rust
//@ build-pass
|
|
//@ needs-rustc-debug-assertions
|
|
//@ compile-flags: -Zmir-enable-passes=+GVN -Zmir-enable-passes=+JumpThreading --crate-type=lib
|
|
|
|
pub fn fun(terminate: bool) {
|
|
while true {}
|
|
//~^ WARN denote infinite loops with `loop { ... }`
|
|
|
|
while !terminate {}
|
|
}
|