1 // compile-flags: -Ztreat-err-as-bug
3 // error-pattern: aborting due to `-Z treat-err-as-bug=1`
4 // error-pattern: [trigger_delay_span_bug] trigger a delay span bug
5 // normalize-stderr-test "note: .*\n\n" -> ""
6 // normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
7 // rustc-env:RUST_BACKTRACE=0
9 #![feature(rustc_attrs)]
11 #[rustc_error(delay_span_bug_from_inside_query)]