fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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:3:24 9 | 10LL | fn serialize(val: &'self T) -> Vec<u8>; 11 | ^^^^^ 12 13error: lifetimes cannot use keyword names 14 --> $DIR/issue-10412.rs:4:37 15 | 16LL | fn deserialize(repr: &[u8]) -> &'self T; 17 | ^^^^^ 18 19error: lifetimes cannot use keyword names 20 --> $DIR/issue-10412.rs:7:6 21 | 22LL | impl<'self> Serializable<str> for &'self str { 23 | ^^^^^ 24 25error: lifetimes cannot use keyword names 26 --> $DIR/issue-10412.rs:7:36 27 | 28LL | impl<'self> Serializable<str> for &'self str { 29 | ^^^^^ 30 31error: lifetimes cannot use keyword names 32 --> $DIR/issue-10412.rs:12:24 33 | 34LL | fn serialize(val: &'self str) -> Vec<u8> { 35 | ^^^^^ 36 37error: lifetimes cannot use keyword names 38 --> $DIR/issue-10412.rs:16:37 39 | 40LL | fn deserialize(repr: &[u8]) -> &'self str { 41 | ^^^^^ 42 43error[E0726]: implicit elided lifetime not allowed here 44 --> $DIR/issue-10412.rs:7:13 45 | 46LL | impl<'self> Serializable<str> for &'self str { 47 | ^^^^^^^^^^^^^^^^^ expected lifetime parameter 48 | 49help: indicate the anonymous lifetime 50 | 51LL | impl<'self> Serializable<'_, str> for &'self str { 52 | +++ 53 54error[E0277]: the size for values of type `str` cannot be known at compilation time 55 --> $DIR/issue-10412.rs:7:13 56 | 57LL | impl<'self> Serializable<str> for &'self str { 58 | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 59 | 60 = help: the trait `Sized` is not implemented for `str` 61note: required by a bound in `Serializable` 62 --> $DIR/issue-10412.rs:1:27 63 | 64LL | trait Serializable<'self, T> { 65 | ^ required by this bound in `Serializable` 66help: consider relaxing the implicit `Sized` restriction 67 | 68LL | trait Serializable<'self, T: ?Sized> { 69 | ++++++++ 70 71error: aborting due to 9 previous errors 72 73Some errors have detailed explanations: E0277, E0726. 74For more information about an error, try `rustc --explain E0277`.