]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-59508-1.rs
Rollup merge of #60492 - acrrd:issues/54054_chain, r=SimonSapin
[rust.git] / src / test / ui / issues / issue-59508-1.rs
1 #![allow(dead_code)]
2 #![feature(const_generics)]
3 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
4
5 // This test checks that generic parameter re-ordering diagnostic suggestions mention that
6 // consts come after types and lifetimes when the `const_generics` feature is enabled.
7 // We cannot run rustfix on this test because of the above const generics warning.
8
9 struct A;
10
11 impl A {
12     pub fn do_things<T, 'a, 'b: 'a>() {
13     //~^ ERROR lifetime parameters must be declared prior to type parameters
14         println!("panic");
15     }
16 }
17
18 fn main() {}