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