5
5
6
6
use std:: ops:: { Index , IndexMut , Add , Deref } ;
7
7
8
- pub struct Indexable {
8
+ pub struct _Indexable {
9
9
data : [ u8 ; 3 ]
10
10
}
11
11
12
- impl Index < usize > for Indexable {
12
+ impl Index < usize > for _Indexable {
13
13
type Output = u8 ;
14
14
15
- //~ MONO_ITEM fn <Indexable as std::ops::Index<usize>>::index
15
+ //~ MONO_ITEM fn <_Indexable as std::ops::Index<usize>>::index
16
16
fn index ( & self , index : usize ) -> & Self :: Output {
17
17
if index >= 3 {
18
18
& self . data [ 0 ]
@@ -22,8 +22,8 @@ impl Index<usize> for Indexable {
22
22
}
23
23
}
24
24
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
27
27
fn index_mut ( & mut self , index : usize ) -> & mut Self :: Output {
28
28
if index >= 3 {
29
29
& mut self . data [ 0 ]
@@ -34,25 +34,25 @@ impl IndexMut<usize> for Indexable {
34
34
}
35
35
36
36
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
39
39
#[ derive( PartialEq ) ]
40
- pub struct Equatable ( u32 ) ;
40
+ pub struct _Equatable ( u32 ) ;
41
41
42
42
43
- impl Add < u32 > for Equatable {
43
+ impl Add < u32 > for _Equatable {
44
44
type Output = u32 ;
45
45
46
- //~ MONO_ITEM fn <Equatable as std::ops::Add<u32>>::add
46
+ //~ MONO_ITEM fn <_Equatable as std::ops::Add<u32>>::add
47
47
fn add ( self , rhs : u32 ) -> u32 {
48
48
self . 0 + rhs
49
49
}
50
50
}
51
51
52
- impl Deref for Equatable {
52
+ impl Deref for _Equatable {
53
53
type Target = u32 ;
54
54
55
- //~ MONO_ITEM fn <Equatable as std::ops::Deref>::deref
55
+ //~ MONO_ITEM fn <_Equatable as std::ops::Deref>::deref
56
56
fn deref ( & self ) -> & Self :: Target {
57
57
& self . 0
58
58
}
0 commit comments