1 error[E0224]: at least one trait is required for an object type
2 --> $DIR/vs-lifetime.rs:9:23
4 LL | let _: S<'static, dyn 'static +>;
7 error[E0107]: this struct takes 1 lifetime argument but 2 lifetime arguments were supplied
8 --> $DIR/vs-lifetime.rs:11:12
10 LL | let _: S<'static, 'static>;
11 | ^ ------- help: remove this lifetime argument
13 | expected 1 lifetime argument
15 note: struct defined here, with 1 lifetime parameter: `'a`
16 --> $DIR/vs-lifetime.rs:4:8
18 LL | struct S<'a, T>(&'a u8, T);
21 error[E0107]: this struct takes 1 generic argument but 0 generic arguments were supplied
22 --> $DIR/vs-lifetime.rs:11:12
24 LL | let _: S<'static, 'static>;
25 | ^ expected 1 generic argument
27 note: struct defined here, with 1 generic parameter: `T`
28 --> $DIR/vs-lifetime.rs:4:8
30 LL | struct S<'a, T>(&'a u8, T);
32 help: add missing generic argument
34 LL | let _: S<'static, 'static, T>;
37 error[E0224]: at least one trait is required for an object type
38 --> $DIR/vs-lifetime.rs:14:14
40 LL | let _: S<dyn 'static +, 'static>;
43 error[E0747]: type provided when a lifetime was expected
44 --> $DIR/vs-lifetime.rs:14:14
46 LL | let _: S<dyn 'static +, 'static>;
49 error: aborting due to 5 previous errors
51 Some errors have detailed explanations: E0107, E0224, E0747.
52 For more information about an error, try `rustc --explain E0107`.