-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Internal Compiler Error caused by Generic Associated Types #79768
Comments
#79554 might be related. |
If #79554 fixes it, then we'll find out in rust-lang/glacier! |
I expected this to work (tested on top of #79554): fn stringify<T, M1>(m: M1) -> <M1 as Monad>::Plug<String>
where
T: core::fmt::Display,
M1: Monad<Unplug = T>,
{
m.bind(|x| Some(format!("{}", x)))
} But it errors with:
Am I missing something? (Or is this a bug?) @jackh726 EDIT: I think the issue here is that we can't constraint the generic argument for |
Fixed by #79554 |
Add a regression test for issue-81712 Fixes rust-lang#81712, also fixes rust-lang#79768 as duplicate. r? ``@jackh726``
Add a regression test for issue-81712 Fixes rust-lang#81712, also fixes rust-lang#79768 as duplicate. r? ```@jackh726```
|
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: