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
I ran into some problems when attempting to get a blanket implementation for a trait of mine given certain requirements. I managed to reduce my code to the minimal example below.
I don't know too much about Rust internals, and I'm not really sure if this should be allowed, but I had perhaps expected that no actual recursion could occur in this case. What I get is the following compiler error:
error[E0275]: overflow evaluating the requirement `<std::option::Option<_> as Constraint>::Strategy`
|
= help: consider adding a `#![recursion_limit="128"]` attribute to your crate
error: aborting due to previous error
I'm sorry if this has reported before. I searched and found many similar problems, but I simply don't have enough knowledge about the Rust internals to determine if it's the same problem or not.
The text was updated successfully, but these errors were encountered:
I ran into some problems when attempting to get a blanket implementation for a trait of mine given certain requirements. I managed to reduce my code to the minimal example below.
I don't know too much about Rust internals, and I'm not really sure if this should be allowed, but I had perhaps expected that no actual recursion could occur in this case. What I get is the following compiler error:
Rust compiler information:
Here's a playground link which demonstrates the issue: https://play.rust-lang.org/?gist=6d0b7b03aec50245d24de119f57dcafa&version=stable
I'm sorry if this has reported before. I searched and found many similar problems, but I simply don't have enough knowledge about the Rust internals to determine if it's the same problem or not.
The text was updated successfully, but these errors were encountered: