-
Notifications
You must be signed in to change notification settings - Fork 373
Support for ! return type #548
Copy link
Copy link
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels