]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/trait-object-macro-matcher.stderr
Slight rewording of diagnostic message
[rust.git] / src / test / ui / traits / trait-object-macro-matcher.stderr
1 error[E0224]: at least one trait is required for an object type
2   --> $DIR/trait-object-macro-matcher.rs:11:8
3    |
4 LL |     m!(dyn 'static +);
5    |        ^^^^^^^^^^^^^
6
7 error[E0038]: the trait `std::marker::Copy` cannot be made into an object
8   --> $DIR/trait-object-macro-matcher.rs:8:8
9    |
10 LL |     m!(dyn Copy + Send + 'static);
11    |        ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` cannot be made into an object
12    |
13    = note: traits that require `Self: Sized` cannot be made into an object
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0038`.