Files
rust/tests/ui/traits/object/macro-matcher.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
792 B
Plaintext
Raw Normal View History

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
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);
| ^^^^^^^^^^^^^^^^^^^^^^^^^ `Copy` is not dyn compatible
2018-08-08 14:28:26 +02: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
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`.