3 // This test verifies that the suggestion to move types before associated type bindings
10 trait OneWithLifetime<'a, T> {
14 trait Three<T, U, V> {
20 trait ThreeWithLifetime<'a, 'b, 'c, T, U, V> {
26 struct A<T, M: One<A=(), T>> {
27 //~^ ERROR generic arguments must come before the first constraint
33 struct Al<'a, T, M: OneWithLifetime<A=(), T, 'a>> {
34 //~^ ERROR generic arguments must come before the first constraint
35 //~^^ ERROR type provided when a lifetime was expected
40 struct B<T, U, V, M: Three<A=(), B=(), C=(), T, U, V>> {
41 //~^ ERROR generic arguments must come before the first constraint
48 struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), T, U, V, 'a, 'b, 'c>> {
49 //~^ ERROR generic arguments must come before the first constraint
50 //~^^ ERROR type provided when a lifetime was expected
57 struct C<T, U, V, M: Three<T, A=(), B=(), C=(), U, V>> {
58 //~^ ERROR generic arguments must come before the first constraint
65 struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), C=(), U, 'b, V, 'c>> {
66 //~^ ERROR generic arguments must come before the first constraint
67 //~^^ ERROR lifetime provided when a type was expected
74 struct D<T, U, V, M: Three<T, A=(), B=(), U, C=(), V>> {
75 //~^ ERROR generic arguments must come before the first constraint
82 struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), U, 'b, C=(), V, 'c>> {
83 //~^ ERROR generic arguments must come before the first constraint
84 //~^^ ERROR lifetime provided when a type was expected