fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
319 B16 linesraw
1// run-rustfix
2
3#![allow(dead_code)]
4
5// This test checks that generic parameter re-ordering diagnostic suggestions contain bounds.
6
7struct A;
8
9impl A {
10    pub fn do_things<'a, 'b: 'a, T>() {
11    //~^ ERROR lifetime parameters must be declared prior to type parameters
12        println!("panic");
13    }
14}
15
16fn main() {}