]> git.proxmox.com Git - rustc.git/blob - tests/ui/suggestions/issue-84973-blacklist.stderr
c8ce146cebf9ab41c1ee7e09549d051acf5e35a4
[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 LL | struct S;
32 |
33
34 error[E0277]: `{static generator@$DIR/issue-84973-blacklist.rs:17:13: 17:22}` cannot be unpinned
35 --> $DIR/issue-84973-blacklist.rs:17:13
36 |
37 LL | 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
44 note: required by a bound in `f_unpin`
45 --> $DIR/issue-84973-blacklist.rs:8:15
46 |
47 LL | fn f_unpin<T: Unpin>(t: T) {}
48 | ^^^^^ required by this bound in `f_unpin`
49
50 error[E0277]: the size for values of type `dyn Fn()` cannot be known at compilation time
51 --> $DIR/issue-84973-blacklist.rs:22:13
52 |
53 LL | 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()`
59 note: required by a bound in `f_sized`
60 --> $DIR/issue-84973-blacklist.rs:9:12
61 |
62 LL | fn f_sized<T: Sized>(t: T) {}
63 | ^ required by this bound in `f_sized`
64
65 error[E0277]: `Rc<{integer}>` cannot be sent between threads safely
66 --> $DIR/issue-84973-blacklist.rs:27:12
67 |
68 LL | 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}>`
74 note: required by a bound in `f_send`
75 --> $DIR/issue-84973-blacklist.rs:10:14
76 |
77 LL | fn f_send<T: Send>(t: T) {}
78 | ^^^^ required by this bound in `f_send`
79
80 error: aborting due to 5 previous errors
81
82 For more information about this error, try `rustc --explain E0277`.