about summary refs log tree commit diff
path: root/src/test/ui/unsized
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-09-04 10:17:59 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-09-22 11:33:12 -0700
commitb370c111fdb2bc6c6a67bc0ebb7bc4946344a15a (patch)
treeb950ce1553bef3e47eb3db6fc7085e629fe1fd16 /src/test/ui/unsized
parent4ff32c07da9d97e6dc315a4a5c9ffbb797cb27bb (diff)
downloadrust-b370c111fdb2bc6c6a67bc0ebb7bc4946344a15a.tar.gz
rust-b370c111fdb2bc6c6a67bc0ebb7bc4946344a15a.zip
On obligation errors point at the unfulfilled binding when possible
Diffstat (limited to 'src/test/ui/unsized')
-rw-r--r--src/test/ui/unsized/unsized-bare-typaram.stderr2
-rw-r--r--src/test/ui/unsized/unsized-struct.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/unsized/unsized-bare-typaram.stderr b/src/test/ui/unsized/unsized-bare-typaram.stderr
index c39c648f661..565d5610337 100644
--- a/src/test/ui/unsized/unsized-bare-typaram.stderr
+++ b/src/test/ui/unsized/unsized-bare-typaram.stderr
@@ -2,7 +2,7 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim
   --> $DIR/unsized-bare-typaram.rs:2:23
    |
 LL | fn bar<T: Sized>() { }
-   | ------------------ required by `bar`
+   |    --- - required by this bound in `bar`
 LL | fn foo<T: ?Sized>() { bar::<T>() }
    |                       ^^^^^^^^ doesn't have a size known at compile-time
    |
diff --git a/src/test/ui/unsized/unsized-struct.stderr b/src/test/ui/unsized/unsized-struct.stderr
index 795115154e7..0d4776ff6c2 100644
--- a/src/test/ui/unsized/unsized-struct.stderr
+++ b/src/test/ui/unsized/unsized-struct.stderr
@@ -15,7 +15,7 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim
   --> $DIR/unsized-struct.rs:13:24
    |
 LL | fn is_sized<T:Sized>() { }
-   | ---------------------- required by `is_sized`
+   |    -------- - required by this bound in `is_sized`
 ...
 LL | fn bar2<T: ?Sized>() { is_sized::<Bar<T>>() }
    |                        ^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time