52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
error: lifetimes cannot use keyword names
|
|
--> $DIR/issue-10412.rs:1:20
|
|
|
|
|
LL | trait Serializable<'self, T> {
|
|
| ^^^^^
|
|
|
|
error: lifetimes cannot use keyword names
|
|
--> $DIR/issue-10412.rs:2:25
|
|
|
|
|
LL | fn serialize(val : &'self T) -> Vec<u8>;
|
|
| ^^^^^
|
|
|
|
error: lifetimes cannot use keyword names
|
|
--> $DIR/issue-10412.rs:3:38
|
|
|
|
|
LL | fn deserialize(repr : &[u8]) -> &'self T;
|
|
| ^^^^^
|
|
|
|
error: lifetimes cannot use keyword names
|
|
--> $DIR/issue-10412.rs:6:6
|
|
|
|
|
LL | impl<'self> Serializable<str> for &'self str {
|
|
| ^^^^^
|
|
|
|
error: lifetimes cannot use keyword names
|
|
--> $DIR/issue-10412.rs:6:36
|
|
|
|
|
LL | impl<'self> Serializable<str> for &'self str {
|
|
| ^^^^^
|
|
|
|
error: lifetimes cannot use keyword names
|
|
--> $DIR/issue-10412.rs:9:25
|
|
|
|
|
LL | fn serialize(val : &'self str) -> Vec<u8> {
|
|
| ^^^^^
|
|
|
|
error: lifetimes cannot use keyword names
|
|
--> $DIR/issue-10412.rs:12:37
|
|
|
|
|
LL | fn deserialize(repr: &[u8]) -> &'self str {
|
|
| ^^^^^
|
|
|
|
error[E0106]: missing lifetime specifier
|
|
--> $DIR/issue-10412.rs:6:13
|
|
|
|
|
LL | impl<'self> Serializable<str> for &'self str {
|
|
| ^^^^^^^^^^^^^^^^^ expected lifetime parameter
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0106`.
|