Never
Never
is the bottom type, i.e., it is a subtype of all types. There is no value that has type Never
. Never
can be used as the return type for functions that never return normally. For example, it is the return type of the function panic
.
Last updated