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