rust/tests/ui/inference/auxiliary/inference_unstable_itertools.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
401 B
Rust
Raw Normal View History

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