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