2023-06-21 13:05:15 -05:00
|
|
|
// compile-flags: -Ztreat-err-as-bug
|
|
|
|
// dont-check-failure-status
|
|
|
|
// error-pattern: aborting due to `-Z treat-err-as-bug=1`
|
2023-06-27 04:07:14 -05:00
|
|
|
// dont-check-compiler-stderr
|
2023-06-21 13:05:15 -05:00
|
|
|
// rustc-env:RUST_BACKTRACE=0
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
#[deny(while_true)]
|
|
|
|
while true {}
|
|
|
|
}
|