mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
12 lines
318 B
Rust
12 lines
318 B
Rust
// compile-flags: -Ztreat-err-as-bug
|
|
// dont-check-failure-status
|
|
// error-pattern: aborting due to `-Z treat-err-as-bug=1`
|
|
// normalize-stderr-test "note: .*\n\n" -> ""
|
|
// normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
|
|
// rustc-env:RUST_BACKTRACE=0
|
|
|
|
fn main() {
|
|
#[deny(while_true)]
|
|
while true {}
|
|
}
|