2023-05-30 16:32:29 -05:00
|
|
|
error[E0658]: `#[track_caller]` on closures is currently unstable
|
|
|
|
--> $DIR/async-closure-gate.rs:8:13
|
|
|
|
|
|
|
|
|
LL | let _ = #[track_caller] async || {
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
|
|
|
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2023-05-30 16:32:29 -05:00
|
|
|
|
|
|
|
error[E0658]: `#[track_caller]` on closures is currently unstable
|
|
|
|
--> $DIR/async-closure-gate.rs:15:13
|
|
|
|
|
|
|
|
|
LL | let _ = #[track_caller] async || {
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
|
|
|
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2023-05-30 16:32:29 -05:00
|
|
|
|
|
|
|
error[E0658]: `#[track_caller]` on closures is currently unstable
|
|
|
|
--> $DIR/async-closure-gate.rs:21:13
|
|
|
|
|
|
|
|
|
LL | let _ = #[track_caller] || {
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
|
|
|
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2023-05-30 16:32:29 -05:00
|
|
|
|
|
|
|
error[E0658]: `#[track_caller]` on closures is currently unstable
|
2023-10-31 08:45:26 -05:00
|
|
|
--> $DIR/async-closure-gate.rs:29:17
|
2023-05-30 16:32:29 -05:00
|
|
|
|
|
|
|
|
LL | let _ = #[track_caller] || {
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
|
|
|
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2023-05-30 16:32:29 -05:00
|
|
|
|
|
|
|
error[E0658]: `#[track_caller]` on closures is currently unstable
|
2023-10-31 08:45:26 -05:00
|
|
|
--> $DIR/async-closure-gate.rs:37:9
|
2023-05-30 16:32:29 -05:00
|
|
|
|
|
|
|
|
LL | #[track_caller] || {
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
|
|
|
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2023-05-30 16:32:29 -05:00
|
|
|
|
|
|
|
error[E0658]: `#[track_caller]` on closures is currently unstable
|
2023-10-31 08:45:26 -05:00
|
|
|
--> $DIR/async-closure-gate.rs:47:13
|
2023-05-30 16:32:29 -05:00
|
|
|
|
|
|
|
|
LL | #[track_caller] || {
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
|
|
|
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
2024-01-10 00:39:02 -06:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2023-05-30 16:32:29 -05:00
|
|
|
|
2023-10-31 08:45:26 -05:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/async-closure-gate.rs:27:5
|
|
|
|
|
|
|
|
|
LL | fn foo3() {
|
2024-04-10 17:42:48 -05:00
|
|
|
| - help: try adding a return type: `-> impl Future<Output = ()>`
|
2023-10-31 08:45:26 -05:00
|
|
|
LL | / async {
|
|
|
|
LL | |
|
|
|
|
LL | | let _ = #[track_caller] || {
|
|
|
|
LL | |
|
|
|
|
LL | | };
|
|
|
|
LL | | }
|
|
|
|
| |_____^ expected `()`, found `async` block
|
|
|
|
|
|
|
|
|
= note: expected unit type `()`
|
2024-06-27 13:56:57 -05:00
|
|
|
found `async` block `{async block@$DIR/async-closure-gate.rs:27:5: 27:10}`
|
2023-10-31 08:45:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/async-closure-gate.rs:44:5
|
|
|
|
|
|
|
|
|
LL | fn foo5() {
|
2024-04-10 17:42:48 -05:00
|
|
|
| - help: try adding a return type: `-> impl Future<Output = ()>`
|
2023-10-31 08:45:26 -05:00
|
|
|
LL | / async {
|
|
|
|
LL | |
|
|
|
|
LL | | let _ = || {
|
|
|
|
LL | | #[track_caller] || {
|
|
|
|
... |
|
|
|
|
LL | | };
|
|
|
|
LL | | }
|
|
|
|
| |_____^ expected `()`, found `async` block
|
|
|
|
|
|
|
|
|
= note: expected unit type `()`
|
2024-06-27 13:56:57 -05:00
|
|
|
found `async` block `{async block@$DIR/async-closure-gate.rs:44:5: 44:10}`
|
2023-10-31 08:45:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
2023-05-30 16:32:29 -05:00
|
|
|
|
2023-10-31 08:45:26 -05:00
|
|
|
Some errors have detailed explanations: E0308, E0658.
|
|
|
|
For more information about an error, try `rustc --explain E0308`.
|