]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/mutexguard-sync.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / mutexguard-sync.stderr
index 709829e484b453682981e2712985ffcb79593c2f..d1f7d13937578bee6cc2c38b64c193a898958687 100644 (file)
@@ -1,5 +1,5 @@
 error[E0277]: `std::cell::Cell<i32>` cannot be shared between threads safely
-  --> $DIR/mutexguard-sync.rs:21:5
+  --> $DIR/mutexguard-sync.rs:11:5
    |
 LL |     test_sync(guard);
    |     ^^^^^^^^^ `std::cell::Cell<i32>` cannot be shared between threads safely
@@ -7,7 +7,7 @@ LL |     test_sync(guard);
    = help: the trait `std::marker::Sync` is not implemented for `std::cell::Cell<i32>`
    = note: required because of the requirements on the impl of `std::marker::Sync` for `std::sync::MutexGuard<'_, std::cell::Cell<i32>>`
 note: required by `test_sync`
-  --> $DIR/mutexguard-sync.rs:15:1
+  --> $DIR/mutexguard-sync.rs:5:1
    |
 LL | fn test_sync<T: Sync>(_t: T) {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^