fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
537 B12 linesraw
1error[E0277]: `[static generator@$DIR/static-not-unpin.rs:11:25: 13:6 _]` cannot be unpinned
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`.