2021-05-17 20:58:09 +00:00
|
|
|
error[E0277]: the trait bound `String: Copy` is not satisfied
|
|
|
|
--> $DIR/issue-84973-blacklist.rs:15:12
|
|
|
|
|
|
|
|
|
LL | f_copy("".to_string());
|
2021-09-07 11:30:53 +00:00
|
|
|
| ------ ^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
note: required by a bound in `f_copy`
|
|
|
|
--> $DIR/issue-84973-blacklist.rs:6:14
|
|
|
|
|
|
|
|
|
LL | fn f_copy<T: Copy>(t: T) {}
|
|
|
|
| ^^^^ required by this bound in `f_copy`
|
2024-02-14 17:48:40 +00:00
|
|
|
help: consider removing this method call, as the receiver has type `&'static str` and `&'static str: Copy` trivially holds
|
|
|
|
|
|
|
|
|
LL - f_copy("".to_string());
|
|
|
|
LL + f_copy("");
|
|
|
|
|
|
2021-05-17 20:58:09 +00:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `S: Clone` is not satisfied
|
|
|
|
--> $DIR/issue-84973-blacklist.rs:16:13
|
|
|
|
|
|
|
|
|
LL | f_clone(S);
|
2021-09-07 11:30:53 +00:00
|
|
|
| ------- ^ the trait `Clone` is not implemented for `S`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
note: required by a bound in `f_clone`
|
|
|
|
--> $DIR/issue-84973-blacklist.rs:7:15
|
|
|
|
|
|
|
|
|
LL | fn f_clone<T: Clone>(t: T) {}
|
|
|
|
| ^^^^^ required by this bound in `f_clone`
|
2022-03-31 14:58:45 +00:00
|
|
|
help: consider annotating `S` with `#[derive(Clone)]`
|
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + #[derive(Clone)]
|
|
|
|
LL | struct S;
|
2022-03-31 14:58:45 +00:00
|
|
|
|
|
2021-05-17 20:58:09 +00:00
|
|
|
|
2024-04-11 13:15:34 +00:00
|
|
|
error[E0277]: `{static coroutine@$DIR/issue-84973-blacklist.rs:17:26: 17:35}` cannot be unpinned
|
|
|
|
--> $DIR/issue-84973-blacklist.rs:17:26
|
2021-05-17 20:58:09 +00:00
|
|
|
|
|
2024-04-11 13:15:34 +00:00
|
|
|
LL | f_unpin(#[coroutine] static || { yield; });
|
|
|
|
| ------- ^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `{static coroutine@$DIR/issue-84973-blacklist.rs:17:26: 17:35}`
|
2022-08-16 06:27:22 +00:00
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-05-17 20:58:09 +00:00
|
|
|
|
|
2023-04-12 22:03:11 +00:00
|
|
|
= note: consider using the `pin!` macro
|
|
|
|
consider using `Box::pin` if you need to access the pinned value outside of the current scope
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `f_unpin`
|
|
|
|
--> $DIR/issue-84973-blacklist.rs:8:15
|
|
|
|
|
|
|
|
|
LL | fn f_unpin<T: Unpin>(t: T) {}
|
|
|
|
| ^^^^^ required by this bound in `f_unpin`
|
2021-05-17 20:58:09 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `dyn Fn()` cannot be known at compilation time
|
|
|
|
--> $DIR/issue-84973-blacklist.rs:22:13
|
|
|
|
|
|
|
|
|
LL | f_sized(*ref_cl);
|
2021-09-07 11:30:53 +00:00
|
|
|
| ------- ^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-05-17 20:58:09 +00:00
|
|
|
|
|
|
|
|
= help: the trait `Sized` is not implemented for `dyn Fn()`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `f_sized`
|
2024-01-24 21:29:15 +00:00
|
|
|
--> $DIR/issue-84973-blacklist.rs:9:15
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
LL | fn f_sized<T: Sized>(t: T) {}
|
2024-01-24 21:29:15 +00:00
|
|
|
| ^^^^^ required by this bound in `f_sized`
|
2021-05-17 20:58:09 +00:00
|
|
|
|
|
|
|
error[E0277]: `Rc<{integer}>` cannot be sent between threads safely
|
2021-09-14 10:52:36 +00:00
|
|
|
--> $DIR/issue-84973-blacklist.rs:27:12
|
2021-05-17 20:58:09 +00:00
|
|
|
|
|
|
|
|
LL | f_send(rc);
|
2021-09-07 11:30:53 +00:00
|
|
|
| ------ ^^ `Rc<{integer}>` cannot be sent between threads safely
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-05-17 20:58:09 +00:00
|
|
|
|
|
|
|
|
= help: the trait `Send` is not implemented for `Rc<{integer}>`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `f_send`
|
|
|
|
--> $DIR/issue-84973-blacklist.rs:10:14
|
|
|
|
|
|
|
|
|
LL | fn f_send<T: Send>(t: T) {}
|
|
|
|
| ^^^^ required by this bound in `f_send`
|
2021-05-17 20:58:09 +00:00
|
|
|
|
2021-09-14 10:52:36 +00:00
|
|
|
error: aborting due to 5 previous errors
|
2021-05-17 20:58:09 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|