Skip to content

&Vec to function expecting a &[u8; 32] #32559

@mboecker

Description

@mboecker

I tried passing an empty vector to a function and the compiler crashed.
Here is a working example:
http://is.gd/EOfLkC

I think it has to do with the compiler trying to deref the vec.

Meta

rustc 1.7.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.7.0

But the bug is in beta and nightly, too.

I don't have a backtrace. Should be easy for you to get one though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions