This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +905
-0
lines changed Expand file tree Collapse file tree 2 files changed +905
-0
lines changed Original file line number Diff line number Diff line change 1+ //@ only-linux
2+ //@ compile-flags: --error-format=human --color=always
3+
4+ enum Enum {
5+ Unit ,
6+ Tuple ( i32 ) ,
7+ Struct { x : i32 } ,
8+ }
9+
10+ fn main ( ) {
11+ Enum :: Unit ;
12+ Enum :: Tuple ;
13+ Enum :: Struct ;
14+ Enum :: Unit ( ) ;
15+ Enum :: Tuple ( ) ;
16+ Enum :: Struct ( ) ;
17+ Enum :: Unit { } ;
18+ Enum :: Tuple { } ;
19+ Enum :: Struct { } ;
20+ Enum :: Unit ( 0 ) ;
21+ Enum :: Tuple ( 0 ) ;
22+ Enum :: Struct ( 0 ) ;
23+ Enum :: Unit { x : 0 } ;
24+ Enum :: Tuple { x : 0 } ;
25+ Enum :: Struct { x : 0 } ; // ok
26+ Enum :: Unit ( 0 , 0 ) ;
27+ Enum :: Tuple ( 0 , 0 ) ;
28+ Enum :: Struct ( 0 , 0 ) ;
29+ Enum :: Unit { x : 0 , y : 0 } ;
30+
31+ Enum :: Tuple { x : 0 , y : 0 } ;
32+
33+ Enum :: Struct { x : 0 , y : 0 } ;
34+ Enum :: unit;
35+ Enum :: tuple;
36+ Enum :: r#struct;
37+ Enum :: unit ( ) ;
38+ Enum :: tuple ( ) ;
39+ Enum :: r#struct ( ) ;
40+ Enum :: unit { } ;
41+ Enum :: tuple { } ;
42+ Enum :: r#struct { } ;
43+ Enum :: unit ( 0 ) ;
44+ Enum :: tuple ( 0 ) ;
45+ Enum :: r#struct ( 0 ) ;
46+ Enum :: unit { x : 0 } ;
47+ Enum :: tuple { x : 0 } ;
48+ Enum :: r#struct { x : 0 } ;
49+ Enum :: unit ( 0 , 0 ) ;
50+ Enum :: tuple ( 0 , 0 ) ;
51+ Enum :: r#struct ( 0 , 0 ) ;
52+ Enum :: unit { x : 0 , y : 0 } ;
53+ Enum :: tuple { x : 0 , y : 0 } ;
54+ Enum :: r#struct { x : 0 , y : 0 } ;
55+ }
You can’t perform that action at this time.
0 commit comments