• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use proc_macro_error::*;
2 
3 #[test]
4 #[should_panic = "proc-macro-error API cannot be used outside of"]
missing_attr_emit()5 fn 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"]
missing_attr_abort()11 fn missing_attr_abort() {
12     abort_call_site!("You won't see me");
13 }
14