1 // Test that changing what a `type` points to does not go unnoticed
2 // by the variance analysis.
5 // compile-flags: -Z query-dep-graph
7 #![feature(rustc_attrs)]
9 #![allow(unused_variables)]
12 #[rustc_if_this_changed]
17 type TypeAlias<T> = Foo<T>;
19 #[rustc_then_this_would_need(variances_of)] //~ ERROR OK