2019-06-21 14:12:07 +00:00
|
|
|
error[E0224]: at least one trait is required for an object type
|
2021-02-08 22:15:45 +00:00
|
|
|
--> $DIR/vs-lifetime.rs:9:23
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | let _: S<'static, dyn 'static +>;
|
|
|
|
| ^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-02-23 17:27:06 +00:00
|
|
|
error[E0107]: struct takes 1 lifetime argument but 2 lifetime arguments were supplied
|
2021-02-08 22:15:45 +00:00
|
|
|
--> $DIR/vs-lifetime.rs:11:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let _: S<'static, 'static>;
|
2021-02-18 20:01:44 +00:00
|
|
|
| ^ ------- help: remove this lifetime argument
|
2021-01-02 18:45:11 +00:00
|
|
|
| |
|
|
|
|
| expected 1 lifetime argument
|
|
|
|
|
|
|
|
|
note: struct defined here, with 1 lifetime parameter: `'a`
|
2021-02-08 22:15:45 +00:00
|
|
|
--> $DIR/vs-lifetime.rs:4:8
|
2021-01-02 18:45:11 +00:00
|
|
|
|
|
|
|
|
LL | struct S<'a, T>(&'a u8, T);
|
|
|
|
| ^ --
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-02-23 17:27:06 +00:00
|
|
|
error[E0107]: struct takes 1 generic argument but 0 generic arguments were supplied
|
2021-02-08 22:15:45 +00:00
|
|
|
--> $DIR/vs-lifetime.rs:11:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let _: S<'static, 'static>;
|
2021-02-18 20:01:44 +00:00
|
|
|
| ^ expected 1 generic argument
|
2021-01-02 18:45:11 +00:00
|
|
|
|
|
2021-02-18 20:01:44 +00:00
|
|
|
note: struct defined here, with 1 generic parameter: `T`
|
2021-02-08 22:15:45 +00:00
|
|
|
--> $DIR/vs-lifetime.rs:4:8
|
2021-01-02 18:45:11 +00:00
|
|
|
|
|
|
|
|
LL | struct S<'a, T>(&'a u8, T);
|
|
|
|
| ^ -
|
2021-02-18 20:01:44 +00:00
|
|
|
help: add missing generic argument
|
2021-01-02 18:45:11 +00:00
|
|
|
|
|
|
|
|
LL | let _: S<'static, 'static, T>;
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-06-21 14:12:07 +00:00
|
|
|
error[E0224]: at least one trait is required for an object type
|
2021-02-08 22:15:45 +00:00
|
|
|
--> $DIR/vs-lifetime.rs:14:14
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | let _: S<dyn 'static +, 'static>;
|
|
|
|
| ^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-01-21 23:07:07 +00:00
|
|
|
error[E0747]: type provided when a lifetime was expected
|
2021-02-08 22:15:45 +00:00
|
|
|
--> $DIR/vs-lifetime.rs:14:14
|
2020-01-21 23:07:07 +00:00
|
|
|
|
|
|
|
|
LL | let _: S<dyn 'static +, 'static>;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2018-08-08 12:28:26 +00:00
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
2020-03-21 15:43:12 +00:00
|
|
|
Some errors have detailed explanations: E0107, E0224, E0747.
|
2020-01-21 23:07:07 +00:00
|
|
|
For more information about an error, try `rustc --explain E0107`.
|