mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
26 lines
401 B
Rust
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;
|
|
}
|