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 }}
Repository navigation
Cycle error when accidentally comparing a function inside itself #66667
The following code leads to an inscrutable error message:
fnup(){
up == 1}
error[E0391]: cycle detected when processing `up`
--> src/lib.rs:1:1
|
1 | fn up() {
| ^^^^^^^
|
= note: ...which again requires processing `up`, completing the cycle
= note: cycle used when type-checking all item bodies
error: aborting due to previous error
I had this happen in a 10-line function and it took me a bit to realize that I typo'd the function instead of a variable name somewhere. There is no indication where inside the function the bad use is.
Activity
Fix cycle error when emitting suggestion for mismatched `fn` type
Rollup merge of rust-lang#69936 - Aaron1011:fix/suggestion-cycle, r=v…