]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/feature-gates/feature-gate-object_safe_for_dispatch.stderr
Point at `Sized` bound
[rust.git] / src / test / ui / feature-gates / feature-gate-object_safe_for_dispatch.stderr
index a2409621db310add50056be747f0eba4cb96cd31..de362e1cef0fd182631547e23b6c4f44dcc65ff1 100644 (file)
@@ -1,6 +1,9 @@
 error[E0038]: the trait `NonObjectSafe1` cannot be made into an object
   --> $DIR/feature-gate-object_safe_for_dispatch.rs:18:38
    |
+LL | trait NonObjectSafe1: Sized {}
+   |                       ----- the trait cannot require that `Self : Sized`
+...
 LL | fn takes_non_object_safe_ref<T>(obj: &dyn NonObjectSafe1) {
    |                                      ^^^^^^^^^^^^^^^^^^^ the trait `NonObjectSafe1` cannot be made into an object
    |
@@ -36,6 +39,9 @@ LL | fn return_non_object_safe_rc() -> std::rc::Rc<dyn NonObjectSafe4> {
 error[E0038]: the trait `NonObjectSafe1` cannot be made into an object
   --> $DIR/feature-gate-object_safe_for_dispatch.rs:38:6
    |
+LL | trait NonObjectSafe1: Sized {}
+   |                       ----- the trait cannot require that `Self : Sized`
+...
 LL | impl Trait for dyn NonObjectSafe1 {}
    |      ^^^^^ the trait `NonObjectSafe1` cannot be made into an object
    |