ICE: manually implementing Fn traits for unit structs #33687
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
I know the Fn traits are unstable and are therefore completely allowed to eat my laundry and sell my dog to ISIS, but this is probably an important bug nontheless: on current nightly (
rustc 1.8.0 (db2939409 2016-04-11)
, unless playground doesn't use current nightly), the following code ICEsIt also ICEs with an empty struct definition (
struct Test {}
instead ofstruct Test;
). The following code does not ICE:Error message:
The text was updated successfully, but these errors were encountered: