2022-10-23 08:52:59 -05:00
|
|
|
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
|
|
|
|
|
|
2023-01-31 04:44:11 -06:00
|
|
|
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) { }
|
|
|
|
|
|
2022-10-23 08:52:59 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|