diff options
Diffstat (limited to 'src/test/ui/parser/trailing-question-in-macro-type.rs')
-rw-r--r-- | src/test/ui/parser/trailing-question-in-macro-type.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/parser/trailing-question-in-macro-type.rs b/src/test/ui/parser/trailing-question-in-macro-type.rs deleted file mode 100644 index e2a681ddd..000000000 --- a/src/test/ui/parser/trailing-question-in-macro-type.rs +++ /dev/null @@ -1,14 +0,0 @@ -macro_rules! fn_expr { - ($return_type:ty : $body:expr) => { - (|| -> $return_type { $body })() - }; - ($body:expr) => { - (|| $body)() - }; -} - - -fn main() { - fn_expr!{ o?.when(|&i| i > 0)?.when(|&i| i%2 == 0) }; - //~^ ERROR cannot find value `o` in this scope -} |