mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 04:57:35 +00:00
9 lines
234 B
Rust
9 lines
234 B
Rust
// Issue: 103366 , Suggest fix for misplaced generic params
|
|
// The generics fail to parse here, so don't make any suggestions/help
|
|
|
|
#[allow(unused)]
|
|
fn<~>()> id(x: T) -> T { x }
|
|
//~^ ERROR expected identifier, found `<`
|
|
|
|
fn main() {}
|