2019-06-21 22:12:07 +08:00
|
|
|
error[E0224]: at least one trait is required for an object type
|
2021-02-08 23:15:45 +01:00
|
|
|
--> $DIR/macro-matcher.rs:11:8
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-05-28 14:46:13 -04:00
|
|
|
LL | m!(dyn 'static +);
|
|
|
|
|
| ^^^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2024-11-20 14:19:36 -08:00
|
|
|
error[E0038]: the trait `Copy` is not dyn compatible
|
2021-02-08 23:15:45 +01:00
|
|
|
--> $DIR/macro-matcher.rs:8:8
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-05-28 14:46:13 -04:00
|
|
|
LL | m!(dyn Copy + Send + 'static);
|
2024-11-20 14:19:36 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ `Copy` is not dyn compatible
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2024-11-20 14:19:36 -08:00
|
|
|
= note: the trait is not dyn compatible because it requires `Self: Sized`
|
|
|
|
|
= note: for a trait to be dyn compatible it needs to allow building a vtable
|
2025-01-22 05:14:07 +01:00
|
|
|
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
2020-03-21 15:43:12 +00:00
|
|
|
Some errors have detailed explanations: E0038, E0224.
|
|
|
|
|
For more information about an error, try `rustc --explain E0038`.
|