]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error: lifetimes cannot use keyword names |
0731742a | 2 | --> $DIR/issue-10412.rs:1:20 |
8faf50e0 | 3 | | |
532ac7d7 | 4 | LL | trait Serializable<'self, T> { |
8faf50e0 XL |
5 | | ^^^^^ |
6 | ||
7 | error: lifetimes cannot use keyword names | |
0731742a | 8 | --> $DIR/issue-10412.rs:2:25 |
8faf50e0 | 9 | | |
532ac7d7 | 10 | LL | fn serialize(val : &'self T) -> Vec<u8>; |
8faf50e0 XL |
11 | | ^^^^^ |
12 | ||
13 | error: lifetimes cannot use keyword names | |
0731742a | 14 | --> $DIR/issue-10412.rs:3:38 |
8faf50e0 | 15 | | |
532ac7d7 | 16 | LL | fn deserialize(repr : &[u8]) -> &'self T; |
8faf50e0 XL |
17 | | ^^^^^ |
18 | ||
19 | error: lifetimes cannot use keyword names | |
0731742a | 20 | --> $DIR/issue-10412.rs:6:6 |
8faf50e0 | 21 | | |
532ac7d7 | 22 | LL | impl<'self> Serializable<str> for &'self str { |
8faf50e0 XL |
23 | | ^^^^^ |
24 | ||
25 | error: lifetimes cannot use keyword names | |
0731742a | 26 | --> $DIR/issue-10412.rs:6:36 |
8faf50e0 | 27 | | |
532ac7d7 | 28 | LL | impl<'self> Serializable<str> for &'self str { |
8faf50e0 XL |
29 | | ^^^^^ |
30 | ||
31 | error: lifetimes cannot use keyword names | |
48663c56 | 32 | --> $DIR/issue-10412.rs:10:25 |
8faf50e0 | 33 | | |
532ac7d7 | 34 | LL | fn serialize(val : &'self str) -> Vec<u8> { |
8faf50e0 XL |
35 | | ^^^^^ |
36 | ||
37 | error: lifetimes cannot use keyword names | |
48663c56 | 38 | --> $DIR/issue-10412.rs:13:37 |
8faf50e0 | 39 | | |
532ac7d7 | 40 | LL | fn deserialize(repr: &[u8]) -> &'self str { |
8faf50e0 XL |
41 | | ^^^^^ |
42 | ||
48663c56 | 43 | error[E0726]: implicit elided lifetime not allowed here |
0731742a | 44 | --> $DIR/issue-10412.rs:6:13 |
8faf50e0 | 45 | | |
532ac7d7 | 46 | LL | impl<'self> Serializable<str> for &'self str { |
48663c56 | 47 | | ^^^^^^^^^^^^^^^^^ help: indicate the anonymous lifetime: `Serializable<'_, str>` |
8faf50e0 | 48 | |
48663c56 XL |
49 | error[E0277]: the size for values of type `str` cannot be known at compilation time |
50 | --> $DIR/issue-10412.rs:6:13 | |
51 | | | |
ba9703b0 XL |
52 | LL | trait Serializable<'self, T> { |
53 | | - required by this bound in `Serializable` | |
54 | ... | |
48663c56 XL |
55 | LL | impl<'self> Serializable<str> for &'self str { |
56 | | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | |
57 | | | |
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> | |
60 | ||
61 | error: aborting due to 9 previous errors | |
8faf50e0 | 62 | |
48663c56 | 63 | For more information about this error, try `rustc --explain E0277`. |