]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/object/vs-lifetime.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / traits / object / vs-lifetime.stderr
1 error[E0224]: at least one trait is required for an object type
2 --> $DIR/vs-lifetime.rs:9:23
3 |
4 LL | let _: S<'static, dyn 'static +>;
5 | ^^^^^^^^^^^^^
6
7 error[E0107]: this struct takes 1 lifetime argument but 2 lifetime arguments were supplied
8 --> $DIR/vs-lifetime.rs:11:12
9 |
10 LL | let _: S<'static, 'static>;
11 | ^ ------- help: remove this lifetime argument
12 | |
13 | expected 1 lifetime argument
14 |
15 note: struct defined here, with 1 lifetime parameter: `'a`
16 --> $DIR/vs-lifetime.rs:4:8
17 |
18 LL | struct S<'a, T>(&'a u8, T);
19 | ^ --
20
21 error[E0107]: this struct takes 1 generic argument but 0 generic arguments were supplied
22 --> $DIR/vs-lifetime.rs:11:12
23 |
24 LL | let _: S<'static, 'static>;
25 | ^ expected 1 generic argument
26 |
27 note: struct defined here, with 1 generic parameter: `T`
28 --> $DIR/vs-lifetime.rs:4:8
29 |
30 LL | struct S<'a, T>(&'a u8, T);
31 | ^ -
32 help: add missing generic argument
33 |
34 LL | let _: S<'static, 'static, T>;
35 | +++
36
37 error[E0224]: at least one trait is required for an object type
38 --> $DIR/vs-lifetime.rs:14:14
39 |
40 LL | let _: S<dyn 'static +, 'static>;
41 | ^^^^^^^^^^^^^
42
43 error[E0747]: type provided when a lifetime was expected
44 --> $DIR/vs-lifetime.rs:14:14
45 |
46 LL | let _: S<dyn 'static +, 'static>;
47 | ^^^^^^^^^^^^^
48
49 error: aborting due to 5 previous errors
50
51 Some errors have detailed explanations: E0107, E0224, E0747.
52 For more information about an error, try `rustc --explain E0107`.