stdlib: Inference engine caught some type errors! Also added some hot garbage.
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
//! Iterable ranges
|
||||
|
||||
/// An Exclusive Range `a .. b` iterates from a to b, excluding b
|
||||
// #[lang = "range_exc"]
|
||||
#[lang = "range_exc"]
|
||||
pub struct RangeExc<T>(T, T)
|
||||
|
||||
/// An Inclusive Range `a ..= b` iterates from a to b, including b
|
||||
// #[lang = "range_inc"]
|
||||
#[lang = "range_inc"]
|
||||
pub struct RangeInc<T>(T, T)
|
||||
|
||||
impl RangeExc {
|
||||
fn next<T>(this: &RangeExc) -> T {
|
||||
(*this).0
|
||||
}
|
||||
impl<T> RangeExc<T> {
|
||||
// fn next(self: &Self) -> T {
|
||||
// let out = (*self.0);
|
||||
// (*self).0 += 1;
|
||||
// out
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user