]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/issue-59508.rs
0b290a6085f9641f17b719a8771321c47f4e9e90
[rust.git] / src / test / ui / generics / issue-59508.rs
1 // run-rustfix
2
3 #![allow(dead_code)]
4
5 // This test checks that generic parameter re-ordering diagnostic suggestions contain bounds.
6
7 struct A;
8
9 impl A {
10     pub fn do_things<T, 'a, 'b: 'a>() {
11     //~^ ERROR lifetime parameters must be declared prior to type or const parameters
12         println!("panic");
13     }
14 }
15
16 fn main() {}