Make use of the implemented red/green algorithm for variance

This commit is contained in:
John Kåre Alsaker 2018-01-24 03:51:02 +01:00
parent fdecb0564b
commit 62afc43a84
3 changed files with 2 additions and 49 deletions

View file

@ -23,7 +23,7 @@ struct Foo<T> {
f: T
}
#[rustc_if_this_changed]
#[rustc_if_this_changed(Krate)]
type TypeAlias<T> = Foo<T>;
#[rustc_then_this_would_need(ItemVariances)] //~ ERROR OK