never type (fix)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user