]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/issue-59508.fixed
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[rust.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 parameters
12         println!("panic");
13     }
14 }
15
16 fn main() {}