mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 21:47:36 +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() {}
|