]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/no-stack-overflow-25295.rs
37b0aca4b00caa1cd46b1472b4a767c0a340e623
[rust.git] / src / test / rustdoc / no-stack-overflow-25295.rs
1 // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // ensure this code doesn't stack overflow
12 // aux-build:enum_primitive.rs
13
14 #[macro_use] extern crate enum_primitive;
15
16 enum_from_primitive! {
17     pub enum Test {
18         A1,A2,A3,A4,A5,A6,
19         B1,B2,B3,B4,B5,B6,
20         C1,C2,C3,C4,C5,C6,
21         D1,D2,D3,D4,D5,D6,
22         E1,E2,E3,E4,E5,E6,
23         F1,F2,F3,F4,F5,F6,
24         G1,G2,G3,G4,G5,G6,
25         H1,H2,H3,H4,H5,H6,
26         I1,I2,I3,I4,I5,I6,
27         J1,J2,J3,J4,J5,J6,
28         K1,K2,K3,K4,K5,K6,
29         L1,L2,L3,L4,L5,L6,
30         M1,M2,M3,M4,M5,M6,
31         N1,N2,N3,N4,N5,N6,
32         O1,O2,O3,O4,O5,O6,
33         P1,P2,P3,P4,P5,P6,
34         Q1,Q2,Q3,Q4,Q5,Q6,
35         R1,R2,R3,R4,R5,R6,
36         S1,S2,S3,S4,S5,S6,
37         T1,T2,T3,T4,T5,T6,
38         U1,U2,U3,U4,U5,U6,
39         V1,V2,V3,V4,V5,V6,
40         W1,W2,W3,W4,W5,W6,
41         X1,X2,X3,X4,X5,X6,
42         Y1,Y2,Y3,Y4,Y5,Y6,
43         Z1,Z2,Z3,Z4,Z5,Z6,
44     }
45 }
46