File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
// run-pass
2
2
3
3
#![ feature( generators) ]
4
+ #![ feature( destructuring_assignment) ]
5
+ #![ feature( unboxed_closures, fn_traits) ]
4
6
5
7
#![ allow( non_camel_case_types) ]
6
8
#![ allow( dead_code) ]
@@ -172,6 +174,17 @@ fn unicode() {
172
174
} , '🤔' ) ;
173
175
}
174
176
177
+ fn function ( ) {
178
+ struct foo ;
179
+ impl FnOnce < ( ) > for foo {
180
+ type Output = foo ;
181
+ extern "rust-call" fn call_once ( self , _args : ( ) ) -> Self :: Output {
182
+ foo
183
+ }
184
+ }
185
+ let foo = foo ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ;
186
+ }
187
+
175
188
fn bathroom_stall ( ) {
176
189
let mut i = 1 ;
177
190
matches ! ( 2 , _|_|_|_|_|_ if ( i+=1 ) != ( i+=1 ) ) ;
@@ -198,5 +211,6 @@ pub fn main() {
198
211
match_nested_if ( ) ;
199
212
monkey_barrel ( ) ;
200
213
unicode ( ) ;
214
+ function ( ) ;
201
215
bathroom_stall ( ) ;
202
216
}
You can’t perform that action at this time.
0 commit comments