Skip to content

Emit a type error for integer literals where the expected type is char #4268

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

Merged
merged 1 commit into from
Dec 28, 2012

Conversation

catamorphism
Copy link
Contributor

r? @brson As per #3477, emit a proper type error instead of ICEing for a situation where the inferred type is integral and the expected type is char (like let x: char = 42).

For example, in let x: char = 42; This was an ICE and is now a
proper type error, as per rust-lang#3477
@brson
Copy link
Contributor

brson commented Dec 28, 2012

r+

@brson
Copy link
Contributor

brson commented Dec 28, 2012

Sorry it took so long

@catamorphism
Copy link
Contributor Author

No prob, I had forgotten you were on vacation. (And still are! Stop working! ;-)

catamorphism added a commit that referenced this pull request Dec 28, 2012
Emit a type error for integer literals where the expected type is char
@catamorphism catamorphism merged commit a75c0b3 into rust-lang:incoming Dec 28, 2012
@catamorphism catamorphism deleted the issue-3477 branch December 28, 2012 21:31
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Apr 14, 2025
Fix Build Fail on MacOs because of libffi-sys
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants