Skip to content

Commit 3f03d95

Browse files
Improve associated-types-overridden-default.rs
Check that the resulting assoc. types are as expected
1 parent c964520 commit 3f03d95

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/ui/associated-types/associated-types-overridden-default.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ impl Tr for () {
1616
type Assoc = ();
1717
}
1818

19-
fn main() {}
19+
fn main() {
20+
let _: <() as Tr>::Assoc = ();
21+
let _: <() as Tr>::Assoc2 = ();
22+
}

0 commit comments

Comments
 (0)