about summary refs log tree commit diff
path: root/src/test/ui/traits/trait-object-macro-matcher.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/traits/trait-object-macro-matcher.stderr')
-rw-r--r--src/test/ui/traits/trait-object-macro-matcher.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/traits/trait-object-macro-matcher.stderr b/src/test/ui/traits/trait-object-macro-matcher.stderr
new file mode 100644
index 00000000000..05511b554cc
--- /dev/null
+++ b/src/test/ui/traits/trait-object-macro-matcher.stderr
@@ -0,0 +1,18 @@
+error[E0224]: at least one non-builtin trait is required for an object type
+  --> $DIR/trait-object-macro-matcher.rs:20:8
+   |
+LL |     m!('static +); //~ ERROR at least one non-builtin trait is required for an object type
+   |        ^^^^^^^^^
+
+error[E0038]: the trait `std::marker::Copy` cannot be made into an object
+  --> $DIR/trait-object-macro-matcher.rs:18:8
+   |
+LL |     m!(Copy + Send + 'static); //~ ERROR the trait `std::marker::Copy` cannot be made into an object
+   |        ^^^^^^^^^^^^^^^^^^^^^ 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`.