never type (fix)

This commit is contained in:
Intege-rs
2024-12-31 14:52:48 -05:00
parent f4c294023e
commit 92f8b1d329

View File

@@ -1,7 +1,7 @@
pub type Never = <fn()->! as Ret>::Ret; pub type Never = <fn()->! as Ret>::Ret;
trait Ret { type Ret; } pub trait Ret { type Ret; }
impl<R> Ret for fn() -> R { impl<R> Ret for fn() -> R {
type Ret=R; type Ret=R;
} }