about summary refs log tree commit diff
path: root/tests/ui/issues/issue-26127.rs
blob: 45f50efdccbdb6fcff907958d7d9654d40948abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ run-pass
trait Tr { type T; }
impl Tr for u8 { type T=(); }
struct S<I: Tr>(#[allow(dead_code)] I::T);

fn foo<I: Tr>(i: I::T) {
    S::<I>(i);
}

fn main() {
    foo::<u8>(());
}