Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
parser
/
suggest_misplaced_generics
/
fn-invalid-generics.rs
blob: 7fcb6a82ce451e49120cc01caa3e39da5c5578d5 [
file
] [
log
] [
blame
]
// 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
()
{}