2018-07-15 14:11:54 -07:00
|
|
|
error: lifetimes cannot use keyword names
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-10412.rs:1:20
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | trait Serializable<'self, T> {
|
2018-07-15 14:11:54 -07:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: lifetimes cannot use keyword names
|
2022-03-06 15:44:48 +01:00
|
|
|
--> $DIR/issue-10412.rs:3:24
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2022-03-06 15:44:48 +01:00
|
|
|
LL | fn serialize(val: &'self T) -> Vec<u8>;
|
|
|
|
| ^^^^^
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
error: lifetimes cannot use keyword names
|
2022-03-06 15:44:48 +01:00
|
|
|
--> $DIR/issue-10412.rs:4:37
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2022-03-06 15:44:48 +01:00
|
|
|
LL | fn deserialize(repr: &[u8]) -> &'self T;
|
|
|
|
| ^^^^^
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
error: lifetimes cannot use keyword names
|
2022-03-06 15:44:48 +01:00
|
|
|
--> $DIR/issue-10412.rs:7:6
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | impl<'self> Serializable<str> for &'self str {
|
2018-07-15 14:11:54 -07:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: lifetimes cannot use keyword names
|
2022-03-06 15:44:48 +01:00
|
|
|
--> $DIR/issue-10412.rs:7:36
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | impl<'self> Serializable<str> for &'self str {
|
2018-07-15 14:11:54 -07:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: lifetimes cannot use keyword names
|
2024-03-19 20:58:37 +00:00
|
|
|
--> $DIR/issue-10412.rs:11:24
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2022-03-06 15:44:48 +01:00
|
|
|
LL | fn serialize(val: &'self str) -> Vec<u8> {
|
|
|
|
| ^^^^^
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
error: lifetimes cannot use keyword names
|
2024-03-19 20:58:37 +00:00
|
|
|
--> $DIR/issue-10412.rs:15:37
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | fn deserialize(repr: &[u8]) -> &'self str {
|
2018-07-15 14:11:54 -07:00
|
|
|
| ^^^^^
|
|
|
|
|
2019-04-29 17:45:22 -07:00
|
|
|
error[E0726]: implicit elided lifetime not allowed here
|
2022-03-06 15:44:48 +01:00
|
|
|
--> $DIR/issue-10412.rs:7:13
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | impl<'self> Serializable<str> for &'self str {
|
2022-03-10 23:12:35 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^ expected lifetime parameter
|
2021-07-19 23:44:35 -04:00
|
|
|
|
|
2022-03-10 23:12:35 +01:00
|
|
|
help: indicate the anonymous lifetime
|
|
|
|
|
|
|
|
|
LL | impl<'self> Serializable<'_, str> for &'self str {
|
|
|
|
| +++
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2024-03-19 20:58:37 +00:00
|
|
|
error: aborting due to 8 previous errors
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2024-03-19 20:58:37 +00:00
|
|
|
For more information about this error, try `rustc --explain E0726`.
|