Skip to content

Not all paths return a value #719

Closed
Closed
@eholk

Description

@eholk
fn clone_chan[T](chan[T] c) -> chan[T] {
    unsafe::reinterpret_cast(rustrt::clone_chan(unsafe::reinterpret_cast(c)))
}

There is only one path, and it returns, however, the compiler doesn't believe me.

You can work around this by adding ret.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions