// run-pass #![allow(unused_variables)] // pretty-expanded FIXME #23616 trait Foo { fn dummy(&self, arg: T) { } } trait Bar { fn method(&self) where A: Foo; } struct S; struct X; impl Foo for X {} impl Bar for i32 { fn method(&self) where X: Foo { } } fn main() { 1.method::(); }