forge
Explore
Log in

Don't you dare go Hollow

edith

Clone
★ 0

0 watching0 forksRust18.3 MiBbcb4dc5Tahinli21 days ago1034 commits

runtime-errors.rs13 lines, 324 bytesHistoryRawDownload
1use proc_macro_error2::*;
2
3#[test]
4#[should_panic = "proc-macro-error2 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-error2 API cannot be used outside of"]
11fn missing_attr_abort() {
12 abort_call_site!("You won't see me");
13}