2021-10-26 17:24:45 -05:00
|
|
|
#![feature(arbitrary_self_types)]
|
|
|
|
|
2018-02-26 07:34:06 -06:00
|
|
|
pub trait IpuItertools {
|
|
|
|
fn ipu_flatten(&self) -> u32 {
|
|
|
|
1
|
|
|
|
}
|
2021-02-03 10:38:05 -06:00
|
|
|
|
2021-10-26 17:24:45 -05:00
|
|
|
fn ipu_by_value_vs_by_ref(&self) -> u32 {
|
|
|
|
1
|
|
|
|
}
|
|
|
|
|
|
|
|
fn ipu_by_ref_vs_by_ref_mut(&mut self) -> u32 {
|
|
|
|
1
|
|
|
|
}
|
|
|
|
|
|
|
|
fn ipu_by_mut_ptr_vs_by_const_ptr(self: *const Self) -> u32 {
|
|
|
|
1
|
|
|
|
}
|
|
|
|
|
2021-02-03 10:38:05 -06:00
|
|
|
const C: i32;
|
2018-02-26 07:34:06 -06:00
|
|
|
}
|
|
|
|
|
2021-02-03 10:38:05 -06:00
|
|
|
impl IpuItertools for char {
|
|
|
|
const C: i32 = 1;
|
|
|
|
}
|