]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-26127.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-26127.rs
CommitLineData
b7449926 1// run-pass
62682a34
SL
2trait Tr { type T; }
3impl Tr for u8 { type T=(); }
064997fb 4struct S<I: Tr>(#[allow(unused_tuple_struct_fields)] I::T);
223e47cc 5
62682a34
SL
6fn foo<I: Tr>(i: I::T) {
7 S::<I>(i);
8}
9
10fn main() {
11 foo::<u8>(());
12}