From 726d6136e3b39fd2456c26fc8c3894dd45a10272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 29 Jun 2022 21:30:19 +0200 Subject: [PATCH] add tests for ICE 94432 Fixes #94432 --- src/test/ui/generics/issue-94432-garbage-ice.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/test/ui/generics/issue-94432-garbage-ice.rs diff --git a/src/test/ui/generics/issue-94432-garbage-ice.rs b/src/test/ui/generics/issue-94432-garbage-ice.rs new file mode 100644 index 0000000000000..d0709e2d2a46c --- /dev/null +++ b/src/test/ui/generics/issue-94432-garbage-ice.rs @@ -0,0 +1,10 @@ +// check-fail +// dont-check-compiler-stdout +// dont-check-compiler-stderr + +fn�a(){fn�p(){e}} //~ ERROR unknown start of token: \u{fffd} +//~^ ERROR unknown start of token: \u{fffd} +//~^^ ERROR can't use generic parameters from outer function [E0401] +//~^^^ WARN type parameter `e` should have an upper camel case name + +fn main(){}