-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rustc internal compiler error: 'RefCell<T> already borrowed' #13763
Comments
This was referenced Apr 25, 2014
arcnmx
pushed a commit
to arcnmx/rust
that referenced
this issue
Jan 9, 2023
…Veykril fix: add generic `TypeBoundList` in generated derivable impl Potentially fixes rust-lang#13727. Continuing with the work in rust-lang#13732, this fix tries to add correct type bounds in the generated `impl` block: ```diff enum Either<T, U> { Left(T), Right(U), } - impl<T, U> PartialEq for Either<T, U> { + impl<T: PartialEq, U: PartialEq> PartialEq for Either<T, U> { fn eq(&self, other: &Self) -> bool { match (self, other) { (Self::Left(l0), Self::Left(r0)) => l0 == r0, (Self::Right(l0), Self::Right(r0)) => l0 == r0, _ => false, } } } ```
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Dec 15, 2024
…#13763) Close rust-lang#13703 changelog: none
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
repro:
backtrace:
version:
rustc 0.11-pre (bb580f1 2014-04-23 05:51:30 -0700)
host: x86_64-apple-darwin
The text was updated successfully, but these errors were encountered: