|
| 1 | +error: mismatched function ABIs |
| 2 | + --> $DIR/dyn-fn-once.rs:4:5 |
| 3 | + | |
| 4 | +LL | become (Box::new(|| ()) as Box<dyn FnOnce() -> ()>)(); |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: `become` requires caller and callee to have the same ABI |
| 8 | + = note: caller ABI is `"Rust"`, while callee ABI is `"rust-call"` |
| 9 | + |
| 10 | +error: mismatched signatures |
| 11 | + --> $DIR/dyn-fn-once.rs:4:5 |
| 12 | + | |
| 13 | +LL | become (Box::new(|| ()) as Box<dyn FnOnce() -> ()>)(); |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 15 | + | |
| 16 | + = note: `become` requires caller and callee to have matching signatures |
| 17 | + = note: caller signature: `fn()` |
| 18 | + = note: callee signature: `extern "rust-call" fn(Box<dyn FnOnce()>, ())` |
| 19 | + |
| 20 | +error: mismatched function ABIs |
| 21 | + --> $DIR/dyn-fn-once.rs:10:5 |
| 22 | + | |
| 23 | +LL | become (&g as &dyn FnOnce() -> ())(); |
| 24 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 25 | + | |
| 26 | + = note: `become` requires caller and callee to have the same ABI |
| 27 | + = note: caller ABI is `"Rust"`, while callee ABI is `"rust-call"` |
| 28 | + |
| 29 | +error: mismatched signatures |
| 30 | + --> $DIR/dyn-fn-once.rs:10:5 |
| 31 | + | |
| 32 | +LL | become (&g as &dyn FnOnce() -> ())(); |
| 33 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 34 | + | |
| 35 | + = note: `become` requires caller and callee to have matching signatures |
| 36 | + = note: caller signature: `fn()` |
| 37 | + = note: callee signature: `extern "rust-call" fn(dyn FnOnce(), ())` |
| 38 | + |
| 39 | +error: aborting due to 4 previous errors |
| 40 | + |
0 commit comments