blob: 11218fc66a371707c5c83d8e4199dc0868b03975 [file] [log] [blame] [edit]
//@ proc-macro: sub-error-diag.rs
// Regression test for issue https://github.com/rust-lang/rust/issues/145305, which used to cause an ICE
// due to an assertion in the compiler that errors could not be subdiagnostics.
extern crate sub_error_diag;
//~? ERROR: Parent message
#[sub_error_diag::proc_emit_err]
//~^ ERROR: Child message
fn foo() {}
fn main() {}