Skip to content

Commit 8e15fc4

Browse files
committed
update tests to reflect refined error message for std::sync::Arc<{Self}>
1 parent a46e8c4 commit 8e15fc4

File tree

90 files changed

+157
-157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+157
-157
lines changed

library/core/src/marker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ impl<T: ?Sized> Copy for &T {}
634634
on(_Self = "std::rc::Rc<T, A>", note = "use `std::sync::Arc` instead of `std::rc::Rc`"),
635635
message = "`{Self}` cannot be shared between threads safely",
636636
label = "`{Self}` cannot be shared between threads safely",
637-
note = "consider using `std::sync::Arc<{Self}>`; for more information visit \
637+
note = "consider whether `std::sync::Arc<{Self}>` could be incorporated to share this value between threads; for more information visit \
638638
<https://doc.rust-lang.org/book/ch16-03-shared-state.html>"
639639
)]
640640
pub unsafe auto trait Sync {

tests/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | type C: Clone + Iterator<Item: Send + Iterator<Item: for<'a> Lam<&'a u8
55
| ^^^^ `<<Self as Case1>::C as Iterator>::Item` cannot be sent between threads safely
66
|
77
= help: the trait `Send` is not implemented for `<<Self as Case1>::C as Iterator>::Item`
8-
= note: consider using `std::sync::Arc<<<Self as Case1>::C as Iterator>::Item>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8+
= note: consider whether `std::sync::Arc<<<Self as Case1>::C as Iterator>::Item>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
99
help: consider further restricting the associated type
1010
|
1111
LL | trait Case1 where <<Self as Case1>::C as Iterator>::Item: Send {
@@ -30,7 +30,7 @@ LL | type C: Clone + Iterator<Item: Send + Iterator<Item: for<'a> Lam<&'a u8
3030
| ^^^^ `<<Self as Case1>::C as Iterator>::Item` cannot be shared between threads safely
3131
|
3232
= help: the trait `Sync` is not implemented for `<<Self as Case1>::C as Iterator>::Item`
33-
= note: consider using `std::sync::Arc<<<Self as Case1>::C as Iterator>::Item>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
33+
= note: consider whether `std::sync::Arc<<<Self as Case1>::C as Iterator>::Item>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
3434
help: consider further restricting the associated type
3535
|
3636
LL | trait Case1 where <<Self as Case1>::C as Iterator>::Item: Sync {

tests/ui/associated-type-bounds/return-type-notation/basic.without.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ LL | is_send(foo::<T>());
1414
| ^^^^^^^^^^ future returned by `foo` is not `Send`
1515
|
1616
= help: within `impl Future<Output = Result<(), ()>>`, the trait `Send` is not implemented for `impl Future<Output = Result<(), ()>>`
17-
= note: consider using `std::sync::Arc<impl Future<Output = Result<(), ()>>>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
17+
= note: consider whether `std::sync::Arc<impl Future<Output = Result<(), ()>>>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
1818
note: future is not `Send` as it awaits another future which is not `Send`
1919
--> $DIR/basic.rs:13:5
2020
|

tests/ui/async-await/async-fn-nonsend.drop_tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ LL | assert_send(non_sync_with_method_call());
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `non_sync_with_method_call` is not `Send`
3030
|
3131
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `dyn std::fmt::Write`
32-
= note: consider using `std::sync::Arc<dyn std::fmt::Write>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
32+
= note: consider whether `std::sync::Arc<dyn std::fmt::Write>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
3333
note: future is not `Send` as this value is used across an await
3434
--> $DIR/async-fn-nonsend.rs:49:15
3535
|

tests/ui/async-await/async-fn-nonsend.drop_tracking_mir.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ LL | assert_send(non_sync_with_method_call());
2626
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `non_sync_with_method_call` is not `Send`
2727
|
2828
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `dyn std::fmt::Write`
29-
= note: consider using `std::sync::Arc<dyn std::fmt::Write>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
29+
= note: consider whether `std::sync::Arc<dyn std::fmt::Write>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
3030
note: future is not `Send` as this value is used across an await
3131
--> $DIR/async-fn-nonsend.rs:49:15
3232
|

tests/ui/async-await/async-fn-nonsend.no_drop_tracking.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ LL | assert_send(non_sync_with_method_call());
5353
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `non_sync_with_method_call` is not `Send`
5454
|
5555
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `dyn std::fmt::Write`
56-
= note: consider using `std::sync::Arc<dyn std::fmt::Write>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
56+
= note: consider whether `std::sync::Arc<dyn std::fmt::Write>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
5757
note: future is not `Send` as this value is used across an await
5858
--> $DIR/async-fn-nonsend.rs:49:15
5959
|
@@ -78,7 +78,7 @@ LL | assert_send(non_sync_with_method_call_panic());
7878
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `non_sync_with_method_call_panic` is not `Send`
7979
|
8080
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `dyn std::fmt::Write`
81-
= note: consider using `std::sync::Arc<dyn std::fmt::Write>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
81+
= note: consider whether `std::sync::Arc<dyn std::fmt::Write>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8282
note: future is not `Send` as this value is used across an await
8383
--> $DIR/async-fn-nonsend.rs:56:15
8484
|
@@ -103,7 +103,7 @@ LL | assert_send(non_sync_with_method_call_infinite_loop());
103103
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `non_sync_with_method_call_infinite_loop` is not `Send`
104104
|
105105
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `dyn std::fmt::Write`
106-
= note: consider using `std::sync::Arc<dyn std::fmt::Write>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
106+
= note: consider whether `std::sync::Arc<dyn std::fmt::Write>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
107107
note: future is not `Send` as this value is used across an await
108108
--> $DIR/async-fn-nonsend.rs:63:15
109109
|

tests/ui/async-await/in-trait/missing-send-bound.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | assert_is_send(test::<T>());
55
| ^^^^^^^^^^^ future returned by `test` is not `Send`
66
|
77
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `impl Future<Output = ()>`
8-
= note: consider using `std::sync::Arc<impl Future<Output = ()>>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8+
= note: consider whether `std::sync::Arc<impl Future<Output = ()>>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
99
note: future is not `Send` as it awaits another future which is not `Send`
1010
--> $DIR/missing-send-bound.rs:10:5
1111
|

tests/ui/async-await/issue-64130-1-sync.drop_tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | is_sync(bar());
55
| ^^^^^ future returned by `bar` is not `Sync`
66
|
77
= help: within `impl Future<Output = ()>`, the trait `Sync` is not implemented for `Foo`
8-
= note: consider using `std::sync::Arc<Foo>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8+
= note: consider whether `std::sync::Arc<Foo>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
99
note: future is not `Sync` as this value is used across an await
1010
--> $DIR/issue-64130-1-sync.rs:18:11
1111
|

tests/ui/async-await/issue-64130-1-sync.drop_tracking_mir.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | is_sync(bar());
55
| ^^^^^ future returned by `bar` is not `Sync`
66
|
77
= help: within `impl Future<Output = ()>`, the trait `Sync` is not implemented for `Foo`
8-
= note: consider using `std::sync::Arc<Foo>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8+
= note: consider whether `std::sync::Arc<Foo>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
99
note: future is not `Sync` as this value is used across an await
1010
--> $DIR/issue-64130-1-sync.rs:18:11
1111
|

tests/ui/async-await/issue-64130-1-sync.no_drop_tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | is_sync(bar());
55
| ^^^^^ future returned by `bar` is not `Sync`
66
|
77
= help: within `impl Future<Output = ()>`, the trait `Sync` is not implemented for `Foo`
8-
= note: consider using `std::sync::Arc<Foo>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8+
= note: consider whether `std::sync::Arc<Foo>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
99
note: future is not `Sync` as this value is used across an await
1010
--> $DIR/issue-64130-1-sync.rs:18:11
1111
|

tests/ui/async-await/issue-64130-4-async-move.no_drop_tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | pub fn foo() -> impl Future + Send {
55
| ^^^^^^^^^^^^^^^^^^ future created by async block is not `Send`
66
|
77
= help: the trait `Sync` is not implemented for `(dyn Any + Send + 'static)`
8-
= note: consider using `std::sync::Arc<(dyn Any + Send + 'static)>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8+
= note: consider whether `std::sync::Arc<(dyn Any + Send + 'static)>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
99
note: future is not `Send` as this value is used across an await
1010
--> $DIR/issue-64130-4-async-move.rs:27:23
1111
|

tests/ui/async-await/issue-64130-non-send-future-diags.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | is_send(foo());
55
| ^^^^^ future returned by `foo` is not `Send`
66
|
77
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `MutexGuard<'_, u32>`
8-
= note: consider using `std::sync::Arc<MutexGuard<'_, u32>>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8+
= note: consider whether `std::sync::Arc<MutexGuard<'_, u32>>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
99
note: future is not `Send` as this value is used across an await
1010
--> $DIR/issue-64130-non-send-future-diags.rs:17:11
1111
|

tests/ui/async-await/issue-67252-unnamed-future.drop_tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | | });
1010
| |_____^ future created by async block is not `Send`
1111
|
1212
= help: within `[async block@$DIR/issue-67252-unnamed-future.rs:21:11: 25:6]`, the trait `Send` is not implemented for `*mut ()`
13-
= note: consider using `std::sync::Arc<*mut ()>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
13+
= note: consider whether `std::sync::Arc<*mut ()>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
1414
note: future is not `Send` as this value is used across an await
1515
--> $DIR/issue-67252-unnamed-future.rs:23:17
1616
|

tests/ui/async-await/issue-67252-unnamed-future.drop_tracking_mir.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | spawn(async {
55
| ^^^^^ future created by async block is not `Send`
66
|
77
= help: within `[async block@$DIR/issue-67252-unnamed-future.rs:21:11: 25:6]`, the trait `Send` is not implemented for `*mut ()`
8-
= note: consider using `std::sync::Arc<*mut ()>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8+
= note: consider whether `std::sync::Arc<*mut ()>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
99
note: future is not `Send` as this value is used across an await
1010
--> $DIR/issue-67252-unnamed-future.rs:23:17
1111
|

tests/ui/async-await/issue-67252-unnamed-future.no_drop_tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | | });
1010
| |_____^ future created by async block is not `Send`
1111
|
1212
= help: within `[async block@$DIR/issue-67252-unnamed-future.rs:21:11: 25:6]`, the trait `Send` is not implemented for `*mut ()`
13-
= note: consider using `std::sync::Arc<*mut ()>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
13+
= note: consider whether `std::sync::Arc<*mut ()>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
1414
note: future is not `Send` as this value is used across an await
1515
--> $DIR/issue-67252-unnamed-future.rs:23:17
1616
|

tests/ui/async-await/issue-70818.drop_tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: future cannot be sent between threads safely
44
LL | fn foo<T: Send, U>(ty: T, ty1: U) -> impl Future<Output = (T, U)> + Send {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future created by async block is not `Send`
66
|
7-
= note: consider using `std::sync::Arc<U>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
7+
= note: consider whether `std::sync::Arc<U>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
88
note: captured value is not `Send`
99
--> $DIR/issue-70818.rs:9:18
1010
|

tests/ui/async-await/issue-70818.drop_tracking_mir.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: future cannot be sent between threads safely
44
LL | fn foo<T: Send, U>(ty: T, ty1: U) -> impl Future<Output = (T, U)> + Send {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future created by async block is not `Send`
66
|
7-
= note: consider using `std::sync::Arc<U>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
7+
= note: consider whether `std::sync::Arc<U>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
88
note: captured value is not `Send`
99
--> $DIR/issue-70818.rs:9:18
1010
|

tests/ui/async-await/issue-70818.no_drop_tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: future cannot be sent between threads safely
44
LL | fn foo<T: Send, U>(ty: T, ty1: U) -> impl Future<Output = (T, U)> + Send {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future created by async block is not `Send`
66
|
7-
= note: consider using `std::sync::Arc<U>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
7+
= note: consider whether `std::sync::Arc<U>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
88
note: captured value is not `Send`
99
--> $DIR/issue-70818.rs:9:18
1010
|

tests/ui/async-await/issue-70935-complex-spans.drop_tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | fn foo(x: NotSync) -> impl Future + Send {
55
| ^^^^^^^^^^^^^^^^^^ `*mut ()` cannot be shared between threads safely
66
|
77
= help: within `NotSync`, the trait `Sync` is not implemented for `*mut ()`
8-
= note: consider using `std::sync::Arc<*mut ()>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8+
= note: consider whether `std::sync::Arc<*mut ()>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
99
note: required because it appears within the type `PhantomData<*mut ()>`
1010
--> $SRC_DIR/core/src/marker.rs:LL:COL
1111
note: required because it appears within the type `NotSync`

tests/ui/async-await/issue-70935-complex-spans.drop_tracking_mir.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | fn foo(x: NotSync) -> impl Future + Send {
55
| ^^^^^^^^^^^^^^^^^^ `*mut ()` cannot be shared between threads safely
66
|
77
= help: within `NotSync`, the trait `Sync` is not implemented for `*mut ()`
8-
= note: consider using `std::sync::Arc<*mut ()>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8+
= note: consider whether `std::sync::Arc<*mut ()>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
99
note: required because it appears within the type `PhantomData<*mut ()>`
1010
--> $SRC_DIR/core/src/marker.rs:LL:COL
1111
note: required because it appears within the type `NotSync`

tests/ui/async-await/issue-70935-complex-spans.no_drop_tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | fn foo(x: NotSync) -> impl Future + Send {
55
| ^^^^^^^^^^^^^^^^^^ future created by async block is not `Send`
66
|
77
= help: within `NotSync`, the trait `Sync` is not implemented for `*mut ()`
8-
= note: consider using `std::sync::Arc<*mut ()>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8+
= note: consider whether `std::sync::Arc<*mut ()>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
99
note: future is not `Send` as this value is used across an await
1010
--> $DIR/issue-70935-complex-spans.rs:24:12
1111
|

tests/ui/async-await/issue-71137.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | fake_spawn(wrong_mutex());
55
| ^^^^^^^^^^^^^ future returned by `wrong_mutex` is not `Send`
66
|
77
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `MutexGuard<'_, i32>`
8-
= note: consider using `std::sync::Arc<MutexGuard<'_, i32>>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
8+
= note: consider whether `std::sync::Arc<MutexGuard<'_, i32>>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
99
note: future is not `Send` as this value is used across an await
1010
--> $DIR/issue-71137.rs:14:26
1111
|

tests/ui/async-await/issue-86507.drop_tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | | }
88
LL | | )
99
| |_____________^ future created by async block is not `Send`
1010
|
11-
= note: consider using `std::sync::Arc<T>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
11+
= note: consider whether `std::sync::Arc<T>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
1212
note: captured value is not `Send` because `&` references cannot be sent unless their referent is `Sync`
1313
--> $DIR/issue-86507.rs:22:29
1414
|

tests/ui/async-await/issue-86507.drop_tracking_mir.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | | }
88
LL | | )
99
| |_____________^ future created by async block is not `Send`
1010
|
11-
= note: consider using `std::sync::Arc<T>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
11+
= note: consider whether `std::sync::Arc<T>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
1212
note: captured value is not `Send` because `&` references cannot be sent unless their referent is `Sync`
1313
--> $DIR/issue-86507.rs:22:29
1414
|

tests/ui/async-await/issue-86507.no_drop_tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | | }
88
LL | | )
99
| |_____________^ future created by async block is not `Send`
1010
|
11-
= note: consider using `std::sync::Arc<T>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
11+
= note: consider whether `std::sync::Arc<T>` could be incorporated to share this value between threads; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html>
1212
note: captured value is not `Send` because `&` references cannot be sent unless their referent is `Sync`
1313
--> $DIR/issue-86507.rs:22:29
1414
|

0 commit comments

Comments
 (0)