summaryrefslogtreecommitdiffstats
path: root/tests/ui/c-variadic/issue-86053-1.rs
blob: 49d5c0390bc134508afa37fbdfb7a80572e55140 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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


#![feature(c_variadic)]
#![crate_type="lib"]

fn ordering4 < 'a , 'b     > ( a :            ,   self , self ,   self ,
    self , ... ,   self ,   self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
}