]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-84973-blacklist.stderr
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
[rust.git] / src / test / 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 note: required by a bound in `f_copy`
8   --> $DIR/issue-84973-blacklist.rs:6:14
9    |
10 LL | fn f_copy<T: Copy>(t: T) {}
11    |              ^^^^ required by this bound in `f_copy`
12
13 error[E0277]: the trait bound `S: Clone` is not satisfied
14   --> $DIR/issue-84973-blacklist.rs:16:13
15    |
16 LL |     f_clone(S);
17    |             ^ the trait `Clone` is not implemented for `S`
18    |
19 note: required by a bound in `f_clone`
20   --> $DIR/issue-84973-blacklist.rs:7:15
21    |
22 LL | fn f_clone<T: Clone>(t: T) {}
23    |               ^^^^^ required by this bound in `f_clone`
24
25 error[E0277]: `[static generator@$DIR/issue-84973-blacklist.rs:17:13: 17:33]` cannot be unpinned
26   --> $DIR/issue-84973-blacklist.rs:17:5
27    |
28 LL |     f_unpin(static || { yield; });
29    |     ^^^^^^^ the trait `Unpin` is not implemented for `[static generator@$DIR/issue-84973-blacklist.rs:17:13: 17:33]`
30    |
31    = note: consider using `Box::pin`
32 note: required by a bound in `f_unpin`
33   --> $DIR/issue-84973-blacklist.rs:8:15
34    |
35 LL | fn f_unpin<T: Unpin>(t: T) {}
36    |               ^^^^^ required by this bound in `f_unpin`
37
38 error[E0277]: the size for values of type `dyn Fn()` cannot be known at compilation time
39   --> $DIR/issue-84973-blacklist.rs:22:13
40    |
41 LL |     f_sized(*ref_cl);
42    |             ^^^^^^^ doesn't have a size known at compile-time
43    |
44    = help: the trait `Sized` is not implemented for `dyn Fn()`
45 note: required by a bound in `f_sized`
46   --> $DIR/issue-84973-blacklist.rs:9:12
47    |
48 LL | fn f_sized<T: Sized>(t: T) {}
49    |            ^ required by this bound in `f_sized`
50
51 error[E0277]: `Rc<{integer}>` cannot be sent between threads safely
52   --> $DIR/issue-84973-blacklist.rs:28:12
53    |
54 LL |     f_send(rc);
55    |            ^^ `Rc<{integer}>` cannot be sent between threads safely
56    |
57    = help: the trait `Send` is not implemented for `Rc<{integer}>`
58 note: required by a bound in `f_send`
59   --> $DIR/issue-84973-blacklist.rs:10:14
60    |
61 LL | fn f_send<T: Send>(t: T) {}
62    |              ^^^^ required by this bound in `f_send`
63
64 error[E0277]: the size for values of type `dyn Fn()` cannot be known at compilation time
65   --> $DIR/issue-84973-blacklist.rs:22:5
66    |
67 LL |     f_sized(*ref_cl);
68    |     ^^^^^^^ doesn't have a size known at compile-time
69    |
70    = help: the trait `Sized` is not implemented for `dyn Fn()`
71    = note: all function arguments must have a statically known size
72    = help: unsized fn params are gated as an unstable feature
73
74 error: aborting due to 6 previous errors
75
76 For more information about this error, try `rustc --explain E0277`.