41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
15 lines
410 B
Plaintext
15 lines
410 B
Plaintext
error: expected identifier, found `<`
|
|
--> $DIR/fn-complex-generics.rs:5:3
|
|
|
|
|
LL | fn<'a, B: 'a + std::ops::Add<Output = u32>> f(_x: B) { }
|
|
| ^ expected identifier
|
|
|
|
|
help: place the generic parameter name after the fn name
|
|
|
|
|
LL - fn<'a, B: 'a + std::ops::Add<Output = u32>> f(_x: B) { }
|
|
LL + fn f<'a, B: 'a + std::ops::Add<Output = u32>>(_x: B) { }
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|