rust/src/test/ui/issues/issue-26127.rs
2019-07-27 18:56:16 +03:00

13 lines
163 B
Rust

// 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>(());
}