]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-26127.rs
Rollup merge of #104347 - notriddle:notriddle/import-macro-from-self-fixup, r=TaKO8Ki
[rust.git] / tests / ui / issues / issue-26127.rs
1 // run-pass
2 trait Tr { type T; }
3 impl Tr for u8 { type T=(); }
4 struct S<I: Tr>(#[allow(unused_tuple_struct_fields)] I::T);
5
6 fn foo<I: Tr>(i: I::T) {
7     S::<I>(i);
8 }
9
10 fn main() {
11     foo::<u8>(());
12 }