Make use of the implemented red/green algorithm for variance
This commit is contained in:
parent
fdecb0564b
commit
62afc43a84
3 changed files with 2 additions and 49 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue