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
Compiling number v0.1.0 (/home/number)
Finished dev [unoptimized + debuginfo] target(s) in 0.30s
Running `target/debug/number`
thread 'main' has overflowed its stack
fatal runtime error: stack overflow
[1] 25988 IOT instruction (core dumped) cargo run
Desired output
The compiler should detect that we are calling Into for f32 trait which is automatically implemented by From for Number trait in our implementation of the From for Number trait.
Rationale and extra context
No response
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
I think a more general version of this is #11032. The blanket Into impl just has U::from(self) in its implementation, so this is basically the same idea: from -> into -> from -> ...
Code
Current output
Desired output
The compiler should detect that we are calling Into for f32 trait which is automatically implemented by From for Number trait in our implementation of the From for Number trait.
Rationale and extra context
No response
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: