1use proc_macro_error::*; 2 3#[test] 4#[should_panic = "proc-macro-error API cannot be used outside of"] 5fn missing_attr_emit() { 6 emit_call_site_error!("You won't see me"); 7} 8 9#[test] 10#[should_panic = "proc-macro-error API cannot be used outside of"] 11fn missing_attr_abort() { 12 abort_call_site!("You won't see me"); 13} 14