never type (fix)
This commit is contained in:
1 parent
f4c294023e
commit
92f8b1d329
1 file changed
+1
-1
@@ -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