]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generics/issue-59508.fixed
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / generics / issue-59508.fixed
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<'a, 'b: 'a, T>() {
11 //~^ ERROR lifetime parameters must be declared prior to type and const parameters
12 println!("panic");
13 }
14 }
15
16 fn main() {}