Skip to content

Commit

Permalink
Rollup merge of #98682 - matthiaskrgr:test-94432, r=compiler-errors
Browse files Browse the repository at this point in the history
add tests for ICE 94432

Fixes #94432
  • Loading branch information
matthiaskrgr authored Jun 29, 2022
2 parents 6d6b30c + 726d613 commit 19f45e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/ui/generics/issue-94432-garbage-ice.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// check-fail
// dont-check-compiler-stdout
// dont-check-compiler-stderr

fna<e>(){fnp(){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(){}

0 comments on commit 19f45e2

Please sign in to comment.