-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Compiler panic when implementing a trait for another trait with a lifetime in a lib #18943
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
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Backtrace I got with that example:
|
I got a more detailled backtrace:
with
|
This now compiles: #![crate_type = "lib"]
trait Foo { }
trait Bar { }
impl<'a> Foo for Bar + 'a { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
This code will cause a compiler panic
link to run: http://is.gd/MC2wAS
message:
This panic only occurs when building as a lib, whether by the
#![crate_type = "lib"]
attribute or with the--crate-type lib
command line option. If you remove the crate_type attribute and add afn main() {}
it does not panic.The text was updated successfully, but these errors were encountered: