From cc5186fcdbfdd90636c92f16f0aa3790962d8fc6 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Fri, 10 Jan 2020 15:32:25 +0100 Subject: [PATCH] Add ICEs for rust#68091 and rust68092 --- ices/68091.rs | 9 +++++++++ ices/68092.rs | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 ices/68091.rs create mode 100644 ices/68092.rs diff --git a/ices/68091.rs b/ices/68091.rs new file mode 100644 index 00000000..b6dab7af --- /dev/null +++ b/ices/68091.rs @@ -0,0 +1,9 @@ +macro_rules! x { + ($($c:tt)*) => { + $($c)ö* {} + }; +} + +fn main() { + x!(if); +} diff --git a/ices/68092.rs b/ices/68092.rs new file mode 100644 index 00000000..bf98256d --- /dev/null +++ b/ices/68092.rs @@ -0,0 +1,9 @@ +macro_rules! x { + ($($c:tt)*) => { + $($c)ö* + }; +} + +fn main() { + x!(!); +}