Files
rust/tests/ui/fn/bad-turbofish-hints-issue-121901.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
289 B
Rust
Raw Normal View History

// 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() {}