2021-06-09 05:41:03 -05:00
|
|
|
// Regression test for the ICE described in issue #86053.
|
|
|
|
// error-pattern:unexpected `self` parameter in function
|
|
|
|
// error-pattern:`...` must be the last argument of a C-variadic function
|
|
|
|
// error-pattern:cannot find type `F` in this scope
|
2023-01-01 17:48:10 -06:00
|
|
|
|
2021-06-09 05:41:03 -05:00
|
|
|
|
|
|
|
#![feature(c_variadic)]
|
|
|
|
#![crate_type="lib"]
|
|
|
|
|
|
|
|
fn ordering4 < 'a , 'b > ( a : , self , self , self ,
|
|
|
|
self , ... , self , self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
|
|
|
|
}
|