]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/static-not-unpin.stderr
Auto merge of #102655 - joboet:windows_tls_opt, r=ChrisDenton
[rust.git] / src / test / ui / generator / static-not-unpin.stderr
1 error[E0277]: `[static generator@$DIR/static-not-unpin.rs:11:25: 11:34]` cannot be unpinned
2   --> $DIR/static-not-unpin.rs:14:18
3    |
4 LL |     assert_unpin(generator);
5    |     ------------ ^^^^^^^^^ the trait `Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:11:25: 11:34]`
6    |     |
7    |     required by a bound introduced by this call
8    |
9    = note: consider using `Box::pin`
10 note: required by a bound in `assert_unpin`
11   --> $DIR/static-not-unpin.rs:7:20
12    |
13 LL | fn assert_unpin<T: Unpin>(_: T) {
14    |                    ^^^^^ required by this bound in `assert_unpin`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.