1 // Test that adding an impl to a trait `Foo` does not affect functions
2 // that only use `Bar`, so long as they do not have methods in common.
5 // compile-flags: -Z query-dep-graph
7 #![feature(rustc_attrs)]
12 pub trait Foo: Sized {
16 pub trait Bar: Sized {
23 #[rustc_if_this_changed]
32 #[rustc_then_this_would_need(typeck)] //~ ERROR no path
41 #[rustc_then_this_would_need(typeck)] //~ ERROR no path