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