blob: f0b472e2fe821e8a489f56eee942cb6618c5410c [file] [log] [blame]
// run-pass
// compile-flags: -g
use std::ops::Deref;
trait Foo {
fn foo() {}
}
impl Foo for u8 {}
fn bar<T: Deref>() where T::Target: Foo {
<<T as Deref>::Target as Foo>::foo()
}
fn main() {
bar::<&u8>();
}