1 // compile-flags:-Zprint-mono-items=eager
6 use std
::ops
::{Index, IndexMut, Add, Deref}
;
12 impl Index
<usize> for Indexable
{
15 //~ MONO_ITEM fn <Indexable as std::ops::Index<usize>>::index
16 fn index(&self, index
: usize) -> &Self::Output
{
25 impl IndexMut
<usize> for Indexable
{
26 //~ MONO_ITEM fn <Indexable as std::ops::IndexMut<usize>>::index_mut
27 fn index_mut(&mut self, index
: usize) -> &mut Self::Output
{
37 //~ MONO_ITEM fn <Equatable as std::cmp::PartialEq>::eq
38 //~ MONO_ITEM fn <Equatable as std::cmp::PartialEq>::ne
40 pub struct Equatable(u32);
43 impl Add
<u32> for Equatable
{
46 //~ MONO_ITEM fn <Equatable as std::ops::Add<u32>>::add
47 fn add(self, rhs
: u32) -> u32 {
52 impl Deref
for Equatable
{
55 //~ MONO_ITEM fn <Equatable as std::ops::Deref>::deref
56 fn deref(&self) -> &Self::Target
{