Skip to content

Commit

Permalink
Rollup merge of rust-lang#98682 - matthiaskrgr:test-94432, r=compiler…
Browse files Browse the repository at this point in the history
…-errors

add tests for ICE 94432

Fixes rust-lang#94432
  • Loading branch information
matthiaskrgr authored Jun 29, 2022
2 parents 8fd26cf + 726d613 commit 125e0ae
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 125e0ae

Please sign in to comment.