2019-06-21 09:12:07 -05:00
|
|
|
error[E0224]: at least one trait is required for an object type
|
2019-01-12 21:25:03 -06:00
|
|
|
--> $DIR/trait-object-vs-lifetime.rs:9:23
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | let _: S<'static, dyn 'static +>;
|
|
|
|
| ^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-08-19 18:08:01 -05:00
|
|
|
error[E0107]: wrong number of lifetime arguments: expected 1, found 2
|
2019-01-12 21:25:03 -06:00
|
|
|
--> $DIR/trait-object-vs-lifetime.rs:11:23
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _: S<'static, 'static>;
|
2018-08-20 06:52:56 -05:00
|
|
|
| ^^^^^^^ unexpected lifetime argument
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-08-21 20:12:23 -05:00
|
|
|
error[E0107]: wrong number of type arguments: expected 1, found 0
|
2019-01-12 21:25:03 -06:00
|
|
|
--> $DIR/trait-object-vs-lifetime.rs:11:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _: S<'static, 'static>;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ expected 1 type argument
|
|
|
|
|
2019-06-21 09:12:07 -05:00
|
|
|
error[E0224]: at least one trait is required for an object type
|
2019-01-12 21:25:03 -06:00
|
|
|
--> $DIR/trait-object-vs-lifetime.rs:14:14
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | let _: S<dyn 'static +, 'static>;
|
|
|
|
| ^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-21 17:07:07 -06:00
|
|
|
error[E0747]: type provided when a lifetime was expected
|
|
|
|
--> $DIR/trait-object-vs-lifetime.rs:14:14
|
|
|
|
|
|
|
|
|
LL | let _: S<dyn 'static +, 'static>;
|
|
|
|
| ^^^^^^^^^^^^^
|
2020-02-21 20:35:24 -06:00
|
|
|
|
|
|
|
|
= note: lifetime arguments must be provided before type arguments
|
2020-01-21 17:07:07 -06:00
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
2020-01-21 17:07:07 -06:00
|
|
|
Some errors have detailed explanations: E0107, E0747.
|
|
|
|
For more information about an error, try `rustc --explain E0107`.
|