55
66use std:: ops:: { Index , IndexMut , Add , Deref } ;
77
8- pub struct Indexable {
8+ pub struct _Indexable {
99 data : [ u8 ; 3 ]
1010}
1111
12- impl Index < usize > for Indexable {
12+ impl Index < usize > for _Indexable {
1313 type Output = u8 ;
1414
15- //~ MONO_ITEM fn <Indexable as std::ops::Index<usize>>::index
15+ //~ MONO_ITEM fn <_Indexable as std::ops::Index<usize>>::index
1616 fn index ( & self , index : usize ) -> & Self :: Output {
1717 if index >= 3 {
1818 & self . data [ 0 ]
@@ -22,8 +22,8 @@ impl Index<usize> for Indexable {
2222 }
2323}
2424
25- impl IndexMut < usize > for Indexable {
26- //~ MONO_ITEM fn <Indexable as std::ops::IndexMut<usize>>::index_mut
25+ impl IndexMut < usize > for _Indexable {
26+ //~ MONO_ITEM fn <_Indexable as std::ops::IndexMut<usize>>::index_mut
2727 fn index_mut ( & mut self , index : usize ) -> & mut Self :: Output {
2828 if index >= 3 {
2929 & mut self . data [ 0 ]
@@ -34,25 +34,25 @@ impl IndexMut<usize> for Indexable {
3434}
3535
3636
37- //~ MONO_ITEM fn <Equatable as std::cmp::PartialEq>::eq
38- //~ MONO_ITEM fn <Equatable as std::cmp::PartialEq>::ne
37+ //~ MONO_ITEM fn <_Equatable as std::cmp::PartialEq>::eq
38+ //~ MONO_ITEM fn <_Equatable as std::cmp::PartialEq>::ne
3939#[ derive( PartialEq ) ]
40- pub struct Equatable ( u32 ) ;
40+ pub struct _Equatable ( u32 ) ;
4141
4242
43- impl Add < u32 > for Equatable {
43+ impl Add < u32 > for _Equatable {
4444 type Output = u32 ;
4545
46- //~ MONO_ITEM fn <Equatable as std::ops::Add<u32>>::add
46+ //~ MONO_ITEM fn <_Equatable as std::ops::Add<u32>>::add
4747 fn add ( self , rhs : u32 ) -> u32 {
4848 self . 0 + rhs
4949 }
5050}
5151
52- impl Deref for Equatable {
52+ impl Deref for _Equatable {
5353 type Target = u32 ;
5454
55- //~ MONO_ITEM fn <Equatable as std::ops::Deref>::deref
55+ //~ MONO_ITEM fn <_Equatable as std::ops::Deref>::deref
5656 fn deref ( & self ) -> & Self :: Target {
5757 & self . 0
5858 }
0 commit comments