File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
trait Serializable < ' self , T > { //~ ERROR lifetimes cannot use keyword names
12
- fn serialize ( val : & ' self T ) -> Vec < u8 > ;
13
- //~^ ERROR lifetimes cannot use keyword names
14
- fn deserialize ( repr : & [ u8 ] ) -> & ' self T ;
15
- //~^ ERROR lifetimes cannot use keyword names
12
+ fn serialize ( val : & ' self T ) -> Vec < u8 > ; //~ ERROR lifetimes cannot use keyword names
13
+ fn deserialize ( repr : & [ u8 ] ) -> & ' self T ; //~ ERROR lifetimes cannot use keyword names
16
14
}
17
15
18
16
impl < ' self > Serializable < str > for & ' self str { //~ ERROR lifetimes cannot use keyword names
19
17
//~^ ERROR lifetimes cannot use keyword names
20
18
//~| ERROR missing lifetime specifier
21
- fn serialize ( val : & ' self str ) -> Vec < u8 > {
22
- //~^ ERROR lifetimes cannot use keyword names
19
+ fn serialize ( val : & ' self str ) -> Vec < u8 > { //~ ERROR lifetimes cannot use keyword names
23
20
vec ! [ 1 ]
24
21
}
25
- fn deserialize ( repr : & [ u8 ] ) -> & ' self str {
26
- //~^ ERROR lifetimes cannot use keyword names
22
+ fn deserialize ( repr : & [ u8 ] ) -> & ' self str { //~ ERROR lifetimes cannot use keyword names
27
23
"hi"
28
24
}
29
25
}
You can’t perform that action at this time.
0 commit comments