Skip to content

Commit 9c52ff9

Browse files
committed
Add comment to
tests/ui/traits/normalize-associated-type-in-where-clause.rs
1 parent d66125e commit 9c52ff9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
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)]
66
struct Foo<T>(T);
77
struct Duck;
88
struct Quack;
99

10-
trait Hello<A> where A: Animal {
10+
trait Hello<A>
11+
where
12+
A: Animal,
13+
{
1114
}
1215

1316
trait 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

2324
impl 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

3030
fn main() {}

0 commit comments

Comments
 (0)