You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/ui/associated-type-bounds/return-type-notation/basic.without.stderr
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
error: future cannot be sent between threads safely
2
-
--> $DIR/basic.rs:22:13
2
+
--> $DIR/basic.rs:20:13
3
3
|
4
4
LL | is_send(foo::<T>());
5
5
| ^^^^^^^^^^ future returned by `foo` is not `Send`
6
6
|
7
7
= help: within `impl Future<Output = Result<(), ()>>`, the trait `Send` is not implemented for `impl Future<Output = Result<(), ()>> { <T as Foo>::method(..) }`
8
8
note: future is not `Send` as it awaits another future which is not `Send`
9
-
--> $DIR/basic.rs:12:5
9
+
--> $DIR/basic.rs:10:5
10
10
|
11
11
LL | T::method().await?;
12
12
| ^^^^^^^^^^^ await occurs here on type `impl Future<Output = Result<(), ()>> { <T as Foo>::method(..) }`, which is not `Send`
0 commit comments