Improve associated-types-overridden-default.rs
Check that the resulting assoc. types are as expected
This commit is contained in:
parent
c964520740
commit
3f03d95bb0
1 changed files with 4 additions and 1 deletions
|
@ -16,4 +16,7 @@ impl Tr for () {
|
|||
type Assoc = ();
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
fn main() {
|
||||
let _: <() as Tr>::Assoc = ();
|
||||
let _: <() as Tr>::Assoc2 = ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue