Skip to content

compiler crash - when using 'self lifetime #7548

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
danoctavian opened this issue Jul 2, 2013 · 1 comment
Closed

compiler crash - when using 'self lifetime #7548

danoctavian opened this issue Jul 2, 2013 · 1 comment

Comments

@danoctavian
Copy link

Minimal example of code that crashes rustc:

extern mod std;
use std::iterator;

pub fn get_mode<T : Iterator<&'self int>>(it : & T) {}
fn main() {}

Error:
rust: task failed at 'explicit failure', rust-0.7/src/librustc/rustc.rs:354

@alexcrichton
Copy link
Member

Closing as a dupe of #6396.

flip1995 pushed a commit to flip1995/rust that referenced this issue Sep 3, 2021
Issue 7548 fix

Close rust-lang#7548

changelog: [`bool_assert_comparison`] fixes should be emitted only in case they are comparing a value of a type that implements the `Not` trait with an output of type `bool` against a boolean literal.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants