-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic at computing function signature of closure with trait object #78262
Comments
Output on 1.46:
Changing the closure argument type to @rustbot modify labels: +A-diagnostics +A-lifetimes +regression-from-stable-to-stable |
With Codetrait TT {}
impl (dyn TT + '_) {
fn func(&self) {}
}
fn main() {
let _f = |x: &dyn TT| x.func();
} |
We probably have to check for closures in |
Assigning |
Do not try to report on closures to avoid ICE Fixes rust-lang#78262
Do not try to report on closures to avoid ICE Fixes rust-lang#78262
Do not try to report on closures to avoid ICE Fixes rust-lang#78262
Do not try to report on closures to avoid ICE Fixes rust-lang#78262
Code
Meta
rustc --version --verbose
:This bug also exists at Rust Playground.
Error output
Backtrace
The text was updated successfully, but these errors were encountered: