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
2020-09-02 10:40:56 +03:00
error[E0038]: the trait `Copy` cannot be made into an object
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);
2020-10-19 17:57:18 -07:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^ `Copy` cannot be made into an object
2018-08-08 14:28:26 +02:00
|
2020-01-31 16:47:00 -08:00
= note: the trait cannot be made into an object because it requires `Self: Sized`
2020-10-15 17:23:45 -07:00
= note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
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`.