Skip to content

Support for ! return type #548

@mexus

Description

@mexus

Currently, when run against a function that never returns, like fn abort() -> ! { .. }, cbindgen skips it with an error message like ... Unsupported type: Never(TypeNever { bang_token: Bang }).

Could we possibly get support for it? For C and C++ prior to C++11, I guess all major compilers support the noreturn attribute as __attribute__ ((noreturn)), while a [[ noreturn ]] attribute has been added to C++11.

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