fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
408 B14 linesraw
1error: expected identifier, found `<`
2  --> $DIR/fn-complex-generics.rs:5:3
3   |
4LL | fn<'a, B: 'a + std::ops::Add<Output = u32>> f(_x: B) { }
5   |   ^ expected identifier
6   |
7help: place the generic parameter name after the fn name
8   |
9LL - fn<'a, B: 'a + std::ops::Add<Output = u32>> f(_x: B) { }
10LL + fn f<'a, B: 'a + std::ops::Add<Output = u32>>(_x: B) { }
11   |
12
13error: aborting due to previous error
14