1 // Test that adding an impl to a trait `Foo` DOES affect functions
2 // that only use `Bar` if they have methods in common.
4 // compile-flags: -Z query-dep-graph -C incremental=tmp/dep-graph-trait-impl-two-traits-same-method
6 #![feature(rustc_attrs)]
8 #![allow(unused_imports)]
12 pub trait Foo: Sized {
16 pub trait Bar: Sized {
23 #[rustc_if_this_changed]
32 #[rustc_then_this_would_need(typeck)] //~ ERROR OK
41 #[rustc_then_this_would_need(typeck)] //~ ERROR no path