Skip to content
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

break rust error message doesn't work properly #114

Open
timando opened this issue Sep 14, 2023 · 2 comments
Open

break rust error message doesn't work properly #114

timando opened this issue Sep 14, 2023 · 2 comments

Comments

@timando
Copy link

timando commented Sep 14, 2023

Code

fn main{
    break rust;
}

Meta

rustc --version --verbose:

<version>

Error output

error[E0425]: cannot find value `crab` in this scope
 --> test.rs:2:11
  |
2 |     break crab;
  |           ^^^^ not found in this scope

error[E0268]: `break` outside of a loop or labeled block
 --> test.rs:2:5
  |
2 |     break crab;
  |     ^^^^^^^^^^ cannot `break` outside of a loop or labeled block

error: internal compiler error: It looks like you're trying to break crab; would you like some ICE?

note: the compiler expectedly panicked. this is a feature.

note: we would appreciate a joke overview: https://github.com/crab-lang/crab/issues/43162#issuecomment-320764675

note: crabc 1.72.0 (5680fa18f 2023-08-23) running on x86_64-unknown-linux-gnu

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0268, E0425.
For more information about an error, try `crabc --explain E0268`.

I never wrote break crab in my source code and if I do, I don't get the joke message.

@trvswgnr
Copy link
Collaborator

you want it to say the forbidden word??

@timando
Copy link
Author

timando commented Sep 21, 2023

no, I want it to give me the joke message when I write break crab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants