Skip to content

ICE when passing too many arguments to a function #4935

Closed
@jdm

Description

@jdm
rusti> fn foo(a: uint) {} 
()
rusti> foo(5, 6)
<anon>:37:0: 38:1 error: this function takes 1 parameter but 2 parameters were supplied
<anon>:37 foo(5, 6)
<anon>:38 })
rust: task failed at 'index out of bounds: the len is 1 but the index is 1', /run/media/jdm/ssd/rust/src/librustc/middle/typeck/check/mod.rs:1250

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-type-systemArea: Type systemE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions