File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 11//@ run-pass
2- // regression test for issue #50825
3- // Check that the feature gate normalizes associated types.
2+ //! regression test for issue #50825, #51044
3+ //! Check that the feature gate normalizes associated types.
44
55#![ allow( dead_code) ]
66struct Foo < T > ( T ) ;
77struct Duck ;
88struct Quack ;
99
10- trait Hello < A > where A : Animal {
10+ trait Hello < A >
11+ where
12+ A : Animal ,
13+ {
1114}
1215
1316trait Animal {
1417 type Noise ;
1518}
1619
17- trait Loud < R > {
18- }
20+ trait Loud < R > { }
1921
20- impl Loud < Quack > for f32 {
21- }
22+ impl Loud < Quack > for f32 { }
2223
2324impl Animal for Duck {
2425 type Noise = Quack ;
2526}
2627
27- impl Hello < Duck > for Foo < f32 > where f32 : Loud < <Duck as Animal >:: Noise > {
28- }
28+ impl Hello < Duck > for Foo < f32 > where f32 : Loud < <Duck as Animal >:: Noise > { }
2929
3030fn main ( ) { }
You can’t perform that action at this time.
0 commit comments