#![allow(unreachable_code, unused)]
use typle::typle;
struct Looper<T> {
t: T,
}
#[typle(Tuple for 8..=8)]
#[allow(clippy::never_loop)]
impl<T: Tuple> Looper<T> {
fn for_loop(&self) {
'label: for typle_index!(i) in 0..T::LEN {
if typle_const!(i == 0) {
let _x = i;
}
if typle_const!(i == 2) {
let _x = i;
break;
}
if typle_const!(i == 3) {
let _x = i;
continue;
}
if typle_const!(i == 4) {
let _x = i;
break 'label;
}
if typle_const!(i == 5) {
for _j in 0..2 {
continue;
}
while i == 3 {
continue;
}
loop {
break;
}
}
}
}
}
#[typle(Tuple for 4..=4)]
pub fn do_continue<T: Tuple>(t: T) -> Vec<usize> {
let mut output = Vec::new();
for typle_index!(i) in 0..T::LEN {
if typle_const!(i == 2) {
continue;
}
output.push(i);
}
output
}
#[typle(Tuple for 4..=4)]
#[allow(clippy::never_loop)]
pub fn do_continue_labelled<T: Tuple>(t: T) -> Vec<usize> {
let mut output = Vec::new();
'label: for typle_index!(i) in 0..T::LEN {
loop {
if typle_const!(i == 2) {
continue 'label;
}
output.push(i);
break;
}
}
output
}
#[typle(Tuple for 4..=4)]
pub fn do_break<T: Tuple>(t: T) -> Vec<usize> {
let mut output = Vec::new();
for typle_index!(i) in 0..T::LEN {
if typle_const!(i == 2) {
break;
}
output.push(i);
}
output
}
#[typle(Tuple for 4..=4)]
#[allow(clippy::never_loop)]
pub fn do_break_labelled<T: Tuple>(t: T) -> Vec<usize> {
let mut output = Vec::new();
'label: for typle_index!(i) in 0..T::LEN {
loop {
if typle_const!(i == 2) {
break 'label;
}
output.push(i);
break;
}
}
output
}
#[typle(Tuple for 0..=0)]
pub fn check_out_of_bounds<T: Tuple>(t: T) -> usize {
let mut count = 0;
for typle_index!(i) in 15..18 {
count += 1;
}
count
}
#[typle(Tuple for 0..=0)]
pub fn check_negative_range<T: Tuple>(t: T) -> usize {
#[allow(clippy::let_and_return)]
let mut count = 0;
for typle_index!(i) in 4..2 {
count += 1;
}
count
}