File: misuse.rs

package info (click to toggle)
rust-proc-macro-error2 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 308 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 113 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
use proc_macro_error2::abort;

struct Foo;

#[allow(unused)]
fn foo() {
    abort!(Foo, "BOOM");
}

fn main() {}