]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/issue-59508.rs
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
[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 parameters
12         println!("panic");
13     }
14 }
15
16 fn main() {}