2020-07-05 07:02:01 -05:00
|
|
|
// check-pass
|
|
|
|
|
|
|
|
#![feature(trusted_len)]
|
|
|
|
|
|
|
|
use std::{
|
|
|
|
array::IntoIter,
|
|
|
|
fmt::Debug,
|
|
|
|
iter::{ExactSizeIterator, FusedIterator, TrustedLen},
|
|
|
|
};
|
|
|
|
|
|
|
|
pub fn yes_iterator() -> impl Iterator<Item = i32> {
|
2021-05-30 12:16:45 -05:00
|
|
|
IntoIterator::into_iter([0i32; 33])
|
2020-07-05 07:02:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn yes_double_ended_iterator() -> impl DoubleEndedIterator {
|
2021-05-30 12:16:45 -05:00
|
|
|
IntoIterator::into_iter([0i32; 33])
|
2020-07-05 07:02:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn yes_exact_size_iterator() -> impl ExactSizeIterator {
|
2021-05-30 12:16:45 -05:00
|
|
|
IntoIterator::into_iter([0i32; 33])
|
2020-07-05 07:02:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn yes_fused_iterator() -> impl FusedIterator {
|
2021-05-30 12:16:45 -05:00
|
|
|
IntoIterator::into_iter([0i32; 33])
|
2020-07-05 07:02:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn yes_trusted_len() -> impl TrustedLen {
|
2021-05-30 12:16:45 -05:00
|
|
|
IntoIterator::into_iter([0i32; 33])
|
2020-07-05 07:02:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn yes_clone() -> impl Clone {
|
2021-05-30 12:16:45 -05:00
|
|
|
IntoIterator::into_iter([0i32; 33])
|
2020-07-05 07:02:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn yes_debug() -> impl Debug {
|
2021-05-30 12:16:45 -05:00
|
|
|
IntoIterator::into_iter([0i32; 33])
|
2020-07-05 07:02:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn main() {}
|