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