You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.
#![feature(proc_macro, conservative_impl_trait, generators)]externcrate futures_await as futures;use futures::prelude::*;#[async]fnfoo() -> Result<(),()>{Ok(await!(foo())?)}fnmain(){foo().wait().unwrap();}
Build log:
> cargo build
Compiling tmp v0.1.0 (file:///home/raviqqe/tmp)
error[E0275]: overflow evaluating the requirement `impl futures::__rt::MyFuture<std::result::Result<(), ()>>`
|
= help: consider adding a `#![recursion_limit="128"]` attribute to your crate
error: aborting due to previous error
error: Could not compile `tmp`.
To learn more, run the command again with --verbose.
However, this may not be due to this crate but this issue.
The text was updated successfully, but these errors were encountered:
Sorry. I found out it seems to be caused by the experimental impl Trait. The similar error happens with the following code. (Or is there no way to infer concrete types in these situations?)
> cargo build
Compiling tmp v0.1.0 (file:///home/raviqqe/tmp)
warning: function cannot return without recurring
--> src/main.rs:3:1
|
3 | fn foo() -> impl Default {
| ^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recurring
4 | foo()
| ----- recursive call site
|
= note: #[warn(unconditional_recursion)] on by default
= help: a `loop` may express intention better if this is on purpose
error[E0275]: overflow evaluating the requirement `impl std::default::Default`
|
= help: consider adding a `#![recursion_limit="128"]` attribute to your crate
error: aborting due to previous error
error: Could not compile `tmp`.
To learn more, run the command again with --verbose.
The code below fails to be compiled.
Build log:
However, this may not be due to this crate but this issue.
The text was updated successfully, but these errors were encountered: