rustc should error instead of panic when the generator trait is not found #63912
Labels
A-coroutines
Area: Coroutines
A-lang-item
Area: Language items
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-help-wanted
Call for participation: Help is requested to fix this issue.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This somehow doesn't occur when putting the
abc
function in a non#![no_core]
crate, yet I can't find any difference between thelibcore
version ofFnOnce
and this one.(Playground)
Errors:
The text was updated successfully, but these errors were encountered: