summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/issue-105084.drop_tracking_mir.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
commitc23a457e72abe608715ac76f076f47dc42af07a5 (patch)
tree2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /tests/ui/generator/issue-105084.drop_tracking_mir.stderr
parentReleasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff)
downloadrustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz
rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/generator/issue-105084.drop_tracking_mir.stderr')
-rw-r--r--tests/ui/generator/issue-105084.drop_tracking_mir.stderr51
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/ui/generator/issue-105084.drop_tracking_mir.stderr b/tests/ui/generator/issue-105084.drop_tracking_mir.stderr
deleted file mode 100644
index 1cd4c4e4d..000000000
--- a/tests/ui/generator/issue-105084.drop_tracking_mir.stderr
+++ /dev/null
@@ -1,51 +0,0 @@
-error[E0382]: borrow of moved value: `g`
- --> $DIR/issue-105084.rs:45:14
- |
-LL | let mut g = || {
- | ----- move occurs because `g` has type `[generator@$DIR/issue-105084.rs:22:17: 22:19]`, which does not implement the `Copy` trait
-...
-LL | let mut h = copy(g);
- | - value moved here
-...
-LL | Pin::new(&mut g).resume(());
- | ^^^^^^ value borrowed here after move
- |
-note: consider changing this parameter type in function `copy` to borrow instead if owning the value isn't necessary
- --> $DIR/issue-105084.rs:17:21
- |
-LL | fn copy<T: Copy>(x: T) -> T {
- | ---- ^ this parameter takes ownership of the value
- | |
- | in this function
-help: consider cloning the value if the performance cost is acceptable
- |
-LL | let mut h = copy(g.clone());
- | ++++++++
-
-error[E0277]: the trait bound `Box<(i32, ())>: Copy` is not satisfied in `[generator@$DIR/issue-105084.rs:22:17: 22:19]`
- --> $DIR/issue-105084.rs:39:17
- |
-LL | let mut g = || {
- | -- within this `[generator@$DIR/issue-105084.rs:22:17: 22:19]`
-...
-LL | let mut h = copy(g);
- | ^^^^ within `[generator@$DIR/issue-105084.rs:22:17: 22:19]`, the trait `Copy` is not implemented for `Box<(i32, ())>`
- |
-note: generator does not implement `Copy` as this value is used across a yield
- --> $DIR/issue-105084.rs:29:22
- |
-LL | Box::new((5, yield));
- | -------------^^^^^--
- | | |
- | | yield occurs here, with `Box::new((5, yield))` maybe used later
- | has type `Box<(i32, ())>` which does not implement `Copy`
-note: required by a bound in `copy`
- --> $DIR/issue-105084.rs:17:12
- |
-LL | fn copy<T: Copy>(x: T) -> T {
- | ^^^^ required by this bound in `copy`
-
-error: aborting due to 2 previous errors
-
-Some errors have detailed explanations: E0277, E0382.
-For more information about an error, try `rustc --explain E0277`.