2 // error-pattern: reached the type-length limit while instantiating
3 // compile-flags: -Copt-level=0
4 // normalize-stderr-test: ".nll/" -> "/"
6 // Test that the type length limit can be changed.
7 // The exact type depends on optimizations, so disable them.
10 #![type_length_limit="8"]
13 ($id:ident, $t:ty) => {
14 pub type $id = ($t, $t, $t);
28 link! { F, G<Option<i32>, Option<i32>> }
30 pub struct G<T, K>(std::marker::PhantomData::<(T, K)>);
33 drop::<Option<A>>(None);