fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.8 KiB82 linesraw
1error[E0277]: the trait bound `String: Copy` is not satisfied
2  --> $DIR/issue-84973-blacklist.rs:15:12
3   |
4LL |     f_copy("".to_string());
5   |     ------ ^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String`
6   |     |
7   |     required by a bound introduced by this call
8   |
9note: required by a bound in `f_copy`
10  --> $DIR/issue-84973-blacklist.rs:6:14
11   |
12LL | fn f_copy<T: Copy>(t: T) {}
13   |              ^^^^ required by this bound in `f_copy`
14
15error[E0277]: the trait bound `S: Clone` is not satisfied
16  --> $DIR/issue-84973-blacklist.rs:16:13
17   |
18LL |     f_clone(S);
19   |     ------- ^ the trait `Clone` is not implemented for `S`
20   |     |
21   |     required by a bound introduced by this call
22   |
23note: required by a bound in `f_clone`
24  --> $DIR/issue-84973-blacklist.rs:7:15
25   |
26LL | fn f_clone<T: Clone>(t: T) {}
27   |               ^^^^^ required by this bound in `f_clone`
28help: consider annotating `S` with `#[derive(Clone)]`
29   |
30LL + #[derive(Clone)]
31LL | struct S;
32   |
33
34error[E0277]: `{static generator@$DIR/issue-84973-blacklist.rs:17:13: 17:22}` cannot be unpinned
35  --> $DIR/issue-84973-blacklist.rs:17:13
36   |
37LL |     f_unpin(static || { yield; });
38   |     ------- ^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `{static generator@$DIR/issue-84973-blacklist.rs:17:13: 17:22}`
39   |     |
40   |     required by a bound introduced by this call
41   |
42   = note: consider using the `pin!` macro
43           consider using `Box::pin` if you need to access the pinned value outside of the current scope
44note: required by a bound in `f_unpin`
45  --> $DIR/issue-84973-blacklist.rs:8:15
46   |
47LL | fn f_unpin<T: Unpin>(t: T) {}
48   |               ^^^^^ required by this bound in `f_unpin`
49
50error[E0277]: the size for values of type `dyn Fn()` cannot be known at compilation time
51  --> $DIR/issue-84973-blacklist.rs:22:13
52   |
53LL |     f_sized(*ref_cl);
54   |     ------- ^^^^^^^ doesn't have a size known at compile-time
55   |     |
56   |     required by a bound introduced by this call
57   |
58   = help: the trait `Sized` is not implemented for `dyn Fn()`
59note: required by a bound in `f_sized`
60  --> $DIR/issue-84973-blacklist.rs:9:12
61   |
62LL | fn f_sized<T: Sized>(t: T) {}
63   |            ^ required by this bound in `f_sized`
64
65error[E0277]: `Rc<{integer}>` cannot be sent between threads safely
66  --> $DIR/issue-84973-blacklist.rs:27:12
67   |
68LL |     f_send(rc);
69   |     ------ ^^ `Rc<{integer}>` cannot be sent between threads safely
70   |     |
71   |     required by a bound introduced by this call
72   |
73   = help: the trait `Send` is not implemented for `Rc<{integer}>`
74note: required by a bound in `f_send`
75  --> $DIR/issue-84973-blacklist.rs:10:14
76   |
77LL | fn f_send<T: Send>(t: T) {}
78   |              ^^^^ required by this bound in `f_send`
79
80error: aborting due to 5 previous errors
81
82For more information about this error, try `rustc --explain E0277`.