]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/issue-59508-1.rs
Rollup merge of #99216 - duarten:master, r=joshtriplett
[rust.git] / src / test / ui / generics / issue-59508-1.rs
1 #![allow(dead_code)]
2
3 // This test checks that generic parameter re-ordering diagnostic suggestions mention that
4 // consts come after types and lifetimes.
5 // We cannot run rustfix on this test because of the above const generics warning.
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 and const parameters
12         println!("panic");
13     }
14 }
15
16 fn main() {}