rust/tests/ui/inference/auxiliary/inference_unstable_itertools.rs
2023-01-11 09:32:08 +00:00

26 lines
401 B
Rust

#![feature(arbitrary_self_types)]
pub trait IpuItertools {
fn ipu_flatten(&self) -> u32 {
1
}
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
}
const C: i32;
}
impl IpuItertools for char {
const C: i32 = 1;
}