Skip to content

Trying to put a named function into a twiddle box does weird thing #3461

Closed
@brson

Description

@brson

If you write something like

fn foo() { }

let bar: ~fn() = ~foo;

It won't compile because rustc tries to give you a unique pointer to a 'bare' function (I think). Making bare functions not types, like str and vec, would probably fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions