Closed
Description
struct A;
impl A {
pub fn do_things<T, 'a, 'b: 'a>() {
println!("panic");
}
}
produces:
error: lifetime parameters must be declared prior to type parameters
--> src/lib.rs:4:25
|
4 | pub fn do_things<T, 'a, 'b: 'a>() {
| ----^^--^^----- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b, T>`
which should be:
error: lifetime parameters must be declared prior to type parameters
--> src/lib.rs:4:25
|
4 | pub fn do_things<T, 'a, 'b: 'a>() {
| ----^^--^^----- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b: 'a, T>`