blob: f3f9c1d9ae821b18db99ead7465f4a2781554a9e (
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(unused_tuple_struct_fields)] I::T);
fn foo<I: Tr>(i: I::T) {
S::<I>(i);
}
fn main() {
foo::<u8>(());
}
|