File: concat-display.rs

package info (click to toggle)
mozjs102 102.15.1-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 905,976 kB
  • sloc: javascript: 1,965,213; cpp: 1,240,505; python: 681,312; ansic: 438,915; xml: 117,665; sh: 18,330; asm: 13,490; makefile: 11,673; yacc: 4,504; perl: 2,222; lex: 1,414; exp: 756; java: 177; ruby: 97; sql: 66; csh: 35; sed: 18
file content (15 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (76)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

macro_rules! error_type {
    ($name:ident, $what:expr) => {
        // Use #[error("invalid {}", $what)] instead.

        #[derive(Error, Debug)]
        #[error(concat!("invalid ", $what))]
        pub struct $name;
    };
}

error_type!(Error, "foo");

fn main() {}