-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-type-systemArea: Type systemArea: Type systemI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone
Description
Trying to compile:
enum test { thing = 3u }
fn main() {
log(error, thing as int);
assert(thing as int == 3);
}
results in
nubs/unsigned-enum-ice.rs:1:20: 1:22 error: mismatched types: expected `int` but found `uint` (int vs uint)
nubs/unsigned-enum-ice.rs:1 enum test { thing = 3u }
^~
nubs/unsigned-enum-ice.rs:1:20: 1:22 error: expected signed integer constant
nubs/unsigned-enum-ice.rs:1 enum test { thing = 3u }
^~
error: internal compiler error: tag_variants: bad disr expr
It should just have the type errors without the ICE.
Metadata
Metadata
Assignees
Labels
A-type-systemArea: Type systemArea: Type systemI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.