2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2012-05-29 17:48:27 -07:00
|
|
|
//@ aux-build:cci_capture_clause.rs
|
|
|
|
|
|
|
|
// This test makes sure we can do cross-crate inlining on functions
|
|
|
|
// that use capture clauses.
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
//@ pretty-expanded FIXME #23616
|
2016-02-11 12:34:41 +01:00
|
|
|
//@ ignore-emscripten no threads support
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2014-02-14 10:10:06 -08:00
|
|
|
extern crate cci_capture_clause;
|
2012-05-29 17:48:27 -07:00
|
|
|
|
2013-01-30 15:56:40 -08:00
|
|
|
pub fn main() {
|
2014-12-23 11:53:35 -08:00
|
|
|
cci_capture_clause::foo(()).recv().unwrap();
|
2012-05-29 17:48:27 -07:00
|
|
|
}
|