summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/wf-object/only-maybe-bound.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/wf-object/only-maybe-bound.stderr')
-rw-r--r--tests/ui/traits/wf-object/only-maybe-bound.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/traits/wf-object/only-maybe-bound.stderr b/tests/ui/traits/wf-object/only-maybe-bound.stderr
new file mode 100644
index 000000000..cbc41feec
--- /dev/null
+++ b/tests/ui/traits/wf-object/only-maybe-bound.stderr
@@ -0,0 +1,15 @@
+error: `?Trait` is not permitted in trait object types
+ --> $DIR/only-maybe-bound.rs:3:15
+ |
+LL | type _0 = dyn ?Sized;
+ | ^^^^^^
+
+error[E0224]: at least one trait is required for an object type
+ --> $DIR/only-maybe-bound.rs:3:11
+ |
+LL | type _0 = dyn ?Sized;
+ | ^^^^^^^^^^
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0224`.