]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | // build-fail |
476ff2be | 2 | // error-pattern: reached the type-length limit while instantiating |
1b1a35ee | 3 | // normalize-stderr-test: ".nll/" -> "/" |
3157f602 | 4 | |
476ff2be | 5 | // Test that the type length limit can be changed. |
a7813a04 | 6 | |
476ff2be | 7 | #![allow(dead_code)] |
6c58768f | 8 | #![type_length_limit="4"] |
476ff2be SL |
9 | |
10 | macro_rules! link { | |
11 | ($id:ident, $t:ty) => { | |
12 | pub type $id = ($t, $t, $t); | |
5bcae85e | 13 | } |
476ff2be SL |
14 | } |
15 | ||
16 | link! { A, B } | |
17 | link! { B, C } | |
18 | link! { C, D } | |
19 | link! { D, E } | |
20 | link! { E, F } | |
21 | link! { F, G } | |
5bcae85e | 22 | |
476ff2be SL |
23 | pub struct G; |
24 | ||
25 | fn main() { | |
26 | drop::<Option<A>>(None); | |
54a0048b | 27 | } |