Skip to content

auto: bool is not an integral type - #4747

Closed
sanxiyn wants to merge 1 commit into
rust-lang:incomingfrom
sanxiyn:integral-type
Closed

sanxiyn wants to merge 1 commit into
rust-lang:incomingfrom
sanxiyn:integral-type

Conversation

@sanxiyn

@sanxiyn sanxiyn commented Feb 4, 2013

Copy link
Copy Markdown
Contributor

ty::type_is_integral returns true for ty_bool. This causes -true to compile, instead of resulting in a type error.

@pcwalton

pcwalton commented Feb 4, 2013

Copy link
Copy Markdown
Contributor

r+

bors added a commit that referenced this pull request Feb 5, 2013
`ty::type_is_integral` returns `true` for `ty_bool`. This causes `-true` to compile, instead of resulting in a type error.
@bors bors closed this Feb 5, 2013
RalfJung added a commit to RalfJung/rust that referenced this pull request Dec 6, 2025
show span when there is an error invoking a global ctor/dtor or the thread main fn
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

Successfully merging this pull request may close these issues.

5 participants