]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/typeck-default-trait-impl-send-param.stderr
Auto merge of #107663 - matthiaskrgr:107423-point-at-EOF-code, r=compiler-errors
[rust.git] / tests / ui / typeck / typeck-default-trait-impl-send-param.stderr
1 error[E0277]: `T` cannot be sent between threads safely
2   --> $DIR/typeck-default-trait-impl-send-param.rs:5:15
3    |
4 LL |     is_send::<T>()
5    |               ^ `T` cannot be sent between threads safely
6    |
7 note: required by a bound in `is_send`
8   --> $DIR/typeck-default-trait-impl-send-param.rs:8:14
9    |
10 LL | fn is_send<T:Send>() {
11    |              ^^^^ required by this bound in `is_send`
12 help: consider restricting type parameter `T`
13    |
14 LL | fn foo<T: std::marker::Send>() {
15    |         +++++++++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.