//@ run-pass //@ compile-flags:-C debuginfo=2 //@ edition:2018 use core::marker::PhantomData; pub struct Foo( PhantomData<(A, T)>, ); enum Never {} impl Foo { fn new_foo() -> Foo { Foo(PhantomData) } } fn main() { let _ = Foo::<[()], Never>::new_foo(); }