]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type_length_limit.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / type_length_limit.rs
CommitLineData
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
10macro_rules! link {
11 ($id:ident, $t:ty) => {
12 pub type $id = ($t, $t, $t);
5bcae85e 13 }
476ff2be
SL
14}
15
16link! { A, B }
17link! { B, C }
18link! { C, D }
19link! { D, E }
20link! { E, F }
21link! { F, G }
5bcae85e 22
476ff2be
SL
23pub struct G;
24
25fn main() {
26 drop::<Option<A>>(None);
54a0048b 27}