diff options
Diffstat (limited to 'third_party/rust/paste/tests/ui/case-warning.rs')
-rw-r--r-- | third_party/rust/paste/tests/ui/case-warning.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/rust/paste/tests/ui/case-warning.rs b/third_party/rust/paste/tests/ui/case-warning.rs new file mode 100644 index 0000000000..fdea4d619d --- /dev/null +++ b/third_party/rust/paste/tests/ui/case-warning.rs @@ -0,0 +1,15 @@ +#![deny(warnings)] + +use paste::paste; + +macro_rules! m { + ($i:ident) => { + paste! { + pub fn [<foo $i>]() {} + } + }; +} + +m!(Bar); + +fn main() {} |