|
1 | 1 | error: functions cannot be both `async` and C-variadic |
2 | 2 | --> $DIR/not-async.rs:5:1 |
3 | 3 | | |
4 | | -LL | async unsafe extern "C" fn cannot_be_async(x: isize, ...) {} |
5 | | - | ^^^^^ `async` because of this ^^^ C-variadic because of this |
| 4 | +LL | async unsafe extern "C" fn fn_cannot_be_async(x: isize, ...) {} |
| 5 | + | ^^^^^ `async` because of this ^^^ C-variadic because of this |
| 6 | + |
| 7 | +error: functions cannot be both `async` and C-variadic |
| 8 | + --> $DIR/not-async.rs:12:5 |
| 9 | + | |
| 10 | +LL | async unsafe extern "C" fn method_cannot_be_async(x: isize, ...) {} |
| 11 | + | ^^^^^ `async` because of this ^^^ C-variadic because of this |
6 | 12 |
|
7 | 13 | error[E0700]: hidden type for `impl Future<Output = ()>` captures lifetime that does not appear in bounds |
8 | | - --> $DIR/not-async.rs:5:59 |
| 14 | + --> $DIR/not-async.rs:5:62 |
9 | 15 | | |
10 | | -LL | async unsafe extern "C" fn cannot_be_async(x: isize, ...) {} |
11 | | - | --------------------------------------------------------- ^^ |
| 16 | +LL | async unsafe extern "C" fn fn_cannot_be_async(x: isize, ...) {} |
| 17 | + | ------------------------------------------------------------ ^^ |
12 | 18 | | | |
13 | 19 | | opaque type defined here |
14 | 20 | | |
15 | | - = note: hidden type `{async fn body of cannot_be_async()}` captures lifetime `'_` |
| 21 | + = note: hidden type `{async fn body of fn_cannot_be_async()}` captures lifetime `'_` |
| 22 | + |
| 23 | +error[E0700]: hidden type for `impl Future<Output = ()>` captures lifetime that does not appear in bounds |
| 24 | + --> $DIR/not-async.rs:12:70 |
| 25 | + | |
| 26 | +LL | async unsafe extern "C" fn method_cannot_be_async(x: isize, ...) {} |
| 27 | + | ---------------------------------------------------------------- ^^ |
| 28 | + | | |
| 29 | + | opaque type defined here |
| 30 | + | |
| 31 | + = note: hidden type `{async fn body of S::method_cannot_be_async()}` captures lifetime `'_` |
16 | 32 |
|
17 | | -error: aborting due to 2 previous errors |
| 33 | +error: aborting due to 4 previous errors |
18 | 34 |
|
19 | 35 | For more information about this error, try `rustc --explain E0700`. |
0 commit comments