Skip to content

Unreachable expression warning in tail throw #42

@maciejhirsz

Description

@maciejhirsz

Thanks for this crate! Minor annoyance I stumbled upon:

Given a function:

#[throws(())]
fn always_throw() {
    throw!(());
}

A compile warning pops out:

   | #[throws(())]
   | ^^^^^^^^^^^^^
   | |
   | unreachable expression
   | any code following this expression is unreachable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions