]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-20692.stderr
Point at `Sized` bound
[rust.git] / src / test / ui / issues / issue-20692.stderr
index 06c83f65be26c7b01fd3e26d9a11533097a44eca..4757742a707b18f389a6c3adb17eac0c3188cf52 100644 (file)
@@ -1,6 +1,9 @@
 error[E0038]: the trait `Array` cannot be made into an object
   --> $DIR/issue-20692.rs:7:5
    |
+LL | trait Array: Sized {}
+   |              ----- the trait cannot require that `Self : Sized`
+...
 LL |     &dyn Array;
    |     ^^^^^^^^^^ the trait `Array` cannot be made into an object
    |
@@ -9,6 +12,9 @@ LL |     &dyn Array;
 error[E0038]: the trait `Array` cannot be made into an object
   --> $DIR/issue-20692.rs:4:13
    |
+LL | trait Array: Sized {}
+   |              ----- the trait cannot require that `Self : Sized`
+...
 LL |     let _ = x
    |             ^ the trait `Array` cannot be made into an object
    |