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