Improve associated-types-overridden-default.rs
Check that the resulting assoc. types are as expected
This commit is contained in:
parent
c964520740
commit
3f03d95bb0
@ -16,4 +16,7 @@ impl Tr for () {
|
||||
type Assoc = ();
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
fn main() {
|
||||
let _: <() as Tr>::Assoc = ();
|
||||
let _: <() as Tr>::Assoc2 = ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user