diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-09-04 10:17:59 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-09-22 11:33:12 -0700 |
| commit | b370c111fdb2bc6c6a67bc0ebb7bc4946344a15a (patch) | |
| tree | b950ce1553bef3e47eb3db6fc7085e629fe1fd16 /src/test/ui/generator | |
| parent | 4ff32c07da9d97e6dc315a4a5c9ffbb797cb27bb (diff) | |
| download | rust-b370c111fdb2bc6c6a67bc0ebb7bc4946344a15a.tar.gz rust-b370c111fdb2bc6c6a67bc0ebb7bc4946344a15a.zip | |
On obligation errors point at the unfulfilled binding when possible
Diffstat (limited to 'src/test/ui/generator')
| -rw-r--r-- | src/test/ui/generator/not-send-sync.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/generator/static-not-unpin.stderr | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/generator/not-send-sync.stderr b/src/test/ui/generator/not-send-sync.stderr index 51416ce0d2f..620db245d3e 100644 --- a/src/test/ui/generator/not-send-sync.stderr +++ b/src/test/ui/generator/not-send-sync.stderr @@ -2,7 +2,7 @@ error[E0277]: `std::cell::Cell<i32>` cannot be shared between threads safely --> $DIR/not-send-sync.rs:16:5 | LL | fn assert_send<T: Send>(_: T) {} - | ----------------------------- required by `main::assert_send` + | ----------- ---- required by this bound in `main::assert_send` ... LL | assert_send(|| { | ^^^^^^^^^^^ `std::cell::Cell<i32>` cannot be shared between threads safely @@ -15,7 +15,7 @@ error[E0277]: `std::cell::Cell<i32>` cannot be shared between threads safely --> $DIR/not-send-sync.rs:9:5 | LL | fn assert_sync<T: Sync>(_: T) {} - | ----------------------------- required by `main::assert_sync` + | ----------- ---- required by this bound in `main::assert_sync` ... LL | assert_sync(|| { | ^^^^^^^^^^^ `std::cell::Cell<i32>` cannot be shared between threads safely diff --git a/src/test/ui/generator/static-not-unpin.stderr b/src/test/ui/generator/static-not-unpin.stderr index b7871ee3478..f2b1078e2b5 100644 --- a/src/test/ui/generator/static-not-unpin.stderr +++ b/src/test/ui/generator/static-not-unpin.stderr @@ -2,7 +2,7 @@ error[E0277]: the trait bound `[static generator@$DIR/static-not-unpin.rs:11:25: --> $DIR/static-not-unpin.rs:14:18 | LL | fn assert_unpin<T: Unpin>(_: T) { - | ------------------------------- required by `assert_unpin` + | ------------ ----- required by this bound in `assert_unpin` ... LL | assert_unpin(generator); | ^^^^^^^^^ the trait `std::marker::Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6 _]` |
