blob: 0ecd5cf5fafaa9bf575305a92f33abd3a93e8918 [file] [log] [blame]
// build-fail
// FIXME: missing sysroot spans (#53081)
// ignore-i586-unknown-linux-gnu
// ignore-i586-unknown-linux-musl
// ignore-i686-unknown-linux-musl
// error-pattern: reached the type-length limit while instantiating
// Test that the type length limit can be changed.
#![allow(dead_code)]
#![type_length_limit="256"]
macro_rules! link {
($id:ident, $t:ty) => {
pub type $id = ($t, $t, $t);
}
}
link! { A, B }
link! { B, C }
link! { C, D }
link! { D, E }
link! { E, F }
link! { F, G }
pub struct G;
fn main() {
drop::<Option<A>>(None);
}