blob: cb479a2308599bd50ed55d649045083c408a7b8f [file] [log] [blame]
// run-pass
trait Tr { type T; }
impl Tr for u8 { type T=(); }
struct S<I: Tr>(I::T);
fn foo<I: Tr>(i: I::T) {
S::<I>(i);
}
fn main() {
foo::<u8>(());
}