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
|
2022-03-06 14:44:48 +00:00
|
|
|
--> $DIR/issue-10412.rs:12: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
|
2022-03-06 14:44:48 +00:00
|
|
|
--> $DIR/issue-10412.rs:16: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
|
|
|
|
2019-04-30 00:45:22 +00:00
|
|
|
error[E0277]: the size for values of type `str` cannot be known at compilation time
|
2022-03-06 14:44:48 +00:00
|
|
|
--> $DIR/issue-10412.rs:7:13
|
2019-04-30 00:45:22 +00:00
|
|
|
|
|
|
|
|
LL | impl<'self> Serializable<str> for &'self str {
|
|
|
|
| ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `str`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Serializable`
|
|
|
|
--> $DIR/issue-10412.rs:1:27
|
|
|
|
|
|
|
|
|
LL | trait Serializable<'self, T> {
|
|
|
|
| ^ required by this bound in `Serializable`
|
2020-06-12 22:13:43 +00:00
|
|
|
help: consider relaxing the implicit `Sized` restriction
|
|
|
|
|
|
|
|
|
LL | trait Serializable<'self, T: ?Sized> {
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++++
|
2019-04-30 00:45:22 +00:00
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2018-07-15 21:11:54 +00:00
|
|
|
|
2022-02-28 13:37:27 +00:00
|
|
|
Some errors have detailed explanations: E0277, E0726.
|
|
|
|
For more information about an error, try `rustc --explain E0277`.
|