diff options
Diffstat (limited to 'vendor/thiserror/tests/ui/concat-display.rs')
-rw-r--r-- | vendor/thiserror/tests/ui/concat-display.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/vendor/thiserror/tests/ui/concat-display.rs b/vendor/thiserror/tests/ui/concat-display.rs deleted file mode 100644 index 8b53cc0..0000000 --- a/vendor/thiserror/tests/ui/concat-display.rs +++ /dev/null @@ -1,15 +0,0 @@ -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() {} |