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

Bad error message on typecasting while using '<' operator #14995

Closed
bollu opened this issue Jun 18, 2014 · 2 comments
Closed

Bad error message on typecasting while using '<' operator #14995

bollu opened this issue Jun 18, 2014 · 2 comments

Comments

@bollu
Copy link

bollu commented Jun 18, 2014

if 1 as f32 < 2.

prints out the error message

expected type, found token LIT_INT_UNSUFFIXED(2i64)

However, >, ==, and != do the right thing.

@steveklabnik
Copy link
Member

This now says 'expected type, found 2'.

I feel like this is a dup...

@steveklabnik
Copy link
Member

This is in fact a duplicate. #11962

lnicola pushed a commit to lnicola/rust that referenced this issue Jun 19, 2023
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