// run-pass trait Device { type Resources; } #[allow(unused_tuple_struct_fields)] struct Foo(D, R); impl Foo { fn present(&self) {} } struct Res; struct Dev; impl Device for Dev { type Resources = Res; } fn main() { let foo = Foo(Dev, Res); foo.present(); }