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