]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type_length_limit.rs
Rollup merge of #66134 - estebank:unknown-formatting-trait, r=nikomatsakis
[rust.git] / src / test / ui / type_length_limit.rs
1 // ignore-x86 FIXME: missing sysroot spans (#53081)
2 // error-pattern: reached the type-length limit while instantiating
3
4 // Test that the type length limit can be changed.
5
6 #![allow(dead_code)]
7 #![type_length_limit="256"]
8
9 macro_rules! link {
10     ($id:ident, $t:ty) => {
11         pub type $id = ($t, $t, $t);
12     }
13 }
14
15 link! { A, B }
16 link! { B, C }
17 link! { C, D }
18 link! { D, E }
19 link! { E, F }
20 link! { F, G }
21
22 pub struct G;
23
24 fn main() {
25     drop::<Option<A>>(None);
26 }