]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-84973-blacklist.stderr
Override rustc version in ui and mir-opt tests to get stable hashes
[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    |     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
29 error[E0277]: `[static generator@$DIR/issue-84973-blacklist.rs:17:13: 17:33]` cannot be unpinned
30   --> $DIR/issue-84973-blacklist.rs:17:5
31    |
32 LL |     f_unpin(static || { yield; });
33    |     ^^^^^^^ the trait `Unpin` is not implemented for `[static generator@$DIR/issue-84973-blacklist.rs:17:13: 17:33]`
34    |
35    = note: consider using `Box::pin`
36 note: required by a bound in `f_unpin`
37   --> $DIR/issue-84973-blacklist.rs:8:15
38    |
39 LL | fn f_unpin<T: Unpin>(t: T) {}
40    |               ^^^^^ required by this bound in `f_unpin`
41
42 error[E0277]: the size for values of type `dyn Fn()` cannot be known at compilation time
43   --> $DIR/issue-84973-blacklist.rs:22:13
44    |
45 LL |     f_sized(*ref_cl);
46    |     ------- ^^^^^^^ doesn't have a size known at compile-time
47    |     |
48    |     required by a bound introduced by this call
49    |
50    = help: the trait `Sized` is not implemented for `dyn Fn()`
51 note: required by a bound in `f_sized`
52   --> $DIR/issue-84973-blacklist.rs:9:12
53    |
54 LL | fn f_sized<T: Sized>(t: T) {}
55    |            ^ required by this bound in `f_sized`
56
57 error[E0277]: `Rc<{integer}>` cannot be sent between threads safely
58   --> $DIR/issue-84973-blacklist.rs:27:12
59    |
60 LL |     f_send(rc);
61    |     ------ ^^ `Rc<{integer}>` cannot be sent between threads safely
62    |     |
63    |     required by a bound introduced by this call
64    |
65    = help: the trait `Send` is not implemented for `Rc<{integer}>`
66 note: required by a bound in `f_send`
67   --> $DIR/issue-84973-blacklist.rs:10:14
68    |
69 LL | fn f_send<T: Send>(t: T) {}
70    |              ^^^^ required by this bound in `f_send`
71
72 error: aborting due to 5 previous errors
73
74 For more information about this error, try `rustc --explain E0277`.