diff options
Diffstat (limited to 'tests/ui/cfg/cfg-method-receiver-ok.rs')
-rw-r--r-- | tests/ui/cfg/cfg-method-receiver-ok.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/cfg/cfg-method-receiver-ok.rs b/tests/ui/cfg/cfg-method-receiver-ok.rs new file mode 100644 index 000000000..61ad3b8c1 --- /dev/null +++ b/tests/ui/cfg/cfg-method-receiver-ok.rs @@ -0,0 +1,14 @@ +// check-pass + +macro_rules! foo { + () => { + #[allow(unreachable_patterns)] + { + 123i32 + } + }; +} + +fn main() { + let _ = foo!().abs(); +} |