]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/object-safety/object-safety-sized.curr.stderr
Point at `Sized` bound
[rust.git] / src / test / ui / object-safety / object-safety-sized.curr.stderr
index 0f284fc85073ebf0726cd7fc0ca131bdb69b3bc4..be0a2519a469b362acae628c1660c5ce4bfaed03 100644 (file)
@@ -1,6 +1,9 @@
 error[E0038]: the trait `Bar` cannot be made into an object
   --> $DIR/object-safety-sized.rs:12:30
    |
+LL | trait Bar : Sized {
+   |             ----- the trait cannot require that `Self : Sized`
+...
 LL | fn make_bar<T:Bar>(t: &T) -> &dyn Bar {
    |                              ^^^^^^^^ the trait `Bar` cannot be made into an object
    |