]> git.lizzy.rs Git - rust.git/blob - src/test/ui/c-variadic/issue-86053-1.rs
Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis
[rust.git] / src / test / ui / c-variadic / issue-86053-1.rs
1 // Regression test for the ICE described in issue #86053.
2 // error-pattern:unexpected `self` parameter in function
3 // error-pattern:`...` must be the last argument of a C-variadic function
4 // error-pattern:cannot find type `F` in this scope
5 // error-pattern:in type `&'a &'b usize`, reference has a longer lifetime than the data it references
6
7 #![feature(c_variadic)]
8 #![crate_type="lib"]
9
10 fn ordering4 < 'a , 'b     > ( a :            ,   self , self ,   self ,
11     self , ... ,   self ,   self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
12 }