rust/tests/ui/c-variadic/issue-86053-1.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
545 B
Rust
Raw Normal View History

// 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
// error-pattern:in type `&'a &'b usize`, reference has a longer lifetime than the data it references
#![feature(c_variadic)]
#![crate_type="lib"]
fn ordering4 < 'a , 'b > ( a : , self , self , self ,
self , ... , self , self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
}