2 #![feature(rustc_attrs)]
4 // Check that bounds on type parameters (other than `Self`) do not
16 struct TestStruct<U,T:Setter<U>> { //~ ERROR [+, +]
21 enum TestEnum<U,T:Setter<U>> { //~ ERROR [*, +]
26 struct TestContraStruct<U,T:Setter<U>> { //~ ERROR [*, +]
31 struct TestBox<U,T:Getter<U>+Setter<U>> { //~ ERROR [*, +]