10 pub struct Impl<A1, A2, A3> {
11 m1: marker::PhantomData<(A1,A2,A3)>,
13 * With A2 we get the ICE:
14 * task <unnamed> failed at 'index out of bounds: the len is 1 but the index is 1',
15 * src/librustc/middle/subst.rs:58
17 t: Box<dyn Trait2<A2>+'static>
20 impl<A1, A2, A3> Impl<A1, A2, A3> {
28 enum Type<T> { Constant(#[allow(unused_tuple_struct_fields)] T) }
31 fn method(&self, _: Type<(K,V)>) -> isize;
34 impl<V> Trait<u8,V> for () {
35 fn method(&self, _x: Type<(u8,V)>) -> isize { 0 }
39 let a = Box::new(()) as Box<dyn Trait<u8, u8>>;
40 assert_eq!(a.method(Type::Constant((1, 2))), 0);