mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
14 lines
268 B
Rust
14 lines
268 B
Rust
//@ run-pass
|
|
//@ aux-build:cci_capture_clause.rs
|
|
|
|
// This test makes sure we can do cross-crate inlining on functions
|
|
// that use capture clauses.
|
|
|
|
//@ needs-threads
|
|
|
|
extern crate cci_capture_clause;
|
|
|
|
pub fn main() {
|
|
cci_capture_clause::foo(()).recv().unwrap();
|
|
}
|