2024-02-16 20:02:50 +00:00
|
|
|
//@ run-rustfix
|
2019-03-30 20:30:36 +01:00
|
|
|
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
// This test checks that generic parameter re-ordering diagnostic suggestions contain bounds.
|
|
|
|
|
|
|
|
struct A;
|
|
|
|
|
|
|
|
impl A {
|
|
|
|
pub fn do_things<'a, 'b: 'a, T>() {
|
2022-09-09 14:28:57 +02:00
|
|
|
//~^ ERROR lifetime parameters must be declared prior to type and const parameters
|
2019-03-30 20:30:36 +01:00
|
|
|
println!("panic");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|