about summary refs log tree commit diff
path: root/tests/ui/fn/bad-turbofish-hints-issue-121901.rs
blob: 1425e576d75a3d9c69dc6d65defc6808d99db83c (plain)
1
2
3
4
5
6
7
8
// Regression test for the parser wrongfully suggesting turbofish syntax in below syntax errors

type One = for<'a> fn(Box<dyn Send + 'a);
//~^ ERROR: expected one of `+`, `,`, or `>`, found `)`
type Two = for<'a> fn(Box<dyn Send + 'a>>);
//~^ ERROR: unmatched angle bracket

fn main() {}