Improve associated-types-overridden-default.rs

Check that the resulting assoc. types are as expected
This commit is contained in:
Jonas Schievink 2019-09-15 17:31:40 +02:00
parent c964520740
commit 3f03d95bb0

View File

@ -16,4 +16,7 @@ impl Tr for () {
type Assoc = ();
}
fn main() {}
fn main() {
let _: <() as Tr>::Assoc = ();
let _: <() as Tr>::Assoc2 = ();
}