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