1 error: lifetimes cannot use keyword names
2 --> $DIR/issue-10412.rs:1:20
4 LL | trait Serializable<'self, T> {
7 error: lifetimes cannot use keyword names
8 --> $DIR/issue-10412.rs:2:25
10 LL | fn serialize(val : &'self T) -> Vec<u8>;
13 error: lifetimes cannot use keyword names
14 --> $DIR/issue-10412.rs:3:38
16 LL | fn deserialize(repr : &[u8]) -> &'self T;
19 error: lifetimes cannot use keyword names
20 --> $DIR/issue-10412.rs:6:6
22 LL | impl<'self> Serializable<str> for &'self str {
25 error: lifetimes cannot use keyword names
26 --> $DIR/issue-10412.rs:6:36
28 LL | impl<'self> Serializable<str> for &'self str {
31 error: lifetimes cannot use keyword names
32 --> $DIR/issue-10412.rs:10:25
34 LL | fn serialize(val : &'self str) -> Vec<u8> {
37 error: lifetimes cannot use keyword names
38 --> $DIR/issue-10412.rs:13:37
40 LL | fn deserialize(repr: &[u8]) -> &'self str {
43 error[E0726]: implicit elided lifetime not allowed here
44 --> $DIR/issue-10412.rs:6:13
46 LL | impl<'self> Serializable<str> for &'self str {
47 | ^^^^^^^^^^^^^^^^^ help: indicate the anonymous lifetime: `Serializable<'_, str>`
49 error[E0277]: the size for values of type `str` cannot be known at compilation time
50 --> $DIR/issue-10412.rs:6:13
52 LL | trait Serializable<'self, T> {
53 | - required by this bound in `Serializable`
55 LL | impl<'self> Serializable<str> for &'self str {
56 | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
58 = help: the trait `std::marker::Sized` is not implemented for `str`
59 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
61 error: aborting due to 9 previous errors
63 For more information about this error, try `rustc --explain E0277`.