fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
571 B12 linesraw
1error[E0277]: the trait bound `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6 _]: std::marker::Unpin` is not satisfied
2  --> $DIR/static-not-unpin.rs:14:18
3   |
4LL | fn assert_unpin<T: Unpin>(_: T) {
5   |    ------------    ----- required by this bound in `assert_unpin`
6...
7LL |     assert_unpin(generator);
8   |                  ^^^^^^^^^ the trait `std::marker::Unpin` is not implemented for `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6 _]`
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0277`.