rust/src/test/ui/traits/trait-object-macro-matcher.stderr

19 lines
634 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0224]: at least one non-builtin trait is required for an object type
2018-12-25 09:56:47 -06:00
--> $DIR/trait-object-macro-matcher.rs:10:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | m!('static +);
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^
error[E0038]: the trait `std::marker::Copy` cannot be made into an object
2018-12-25 09:56:47 -06:00
--> $DIR/trait-object-macro-matcher.rs:8:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | m!(Copy + Send + 'static);
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` cannot be made into an object
|
= note: the trait cannot require that `Self : Sized`
error: aborting due to 2 previous errors
Some errors occurred: E0038, E0224.
For more information about an error, try `rustc --explain E0038`.