diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-25 22:19:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-25 22:19:52 +0100 |
| commit | 9e3f3306567f62086dcbb7f6a71f0a0c07db0de2 (patch) | |
| tree | a3aec2fc3767c3bea32e56599b6c4922cfa88922 /tests/ui/variance | |
| parent | f21728fee4eb11ec7e73801bc60e78dbb08bf71a (diff) | |
| parent | 7b8251e1886924dde68ff9b6a1c02e9973d0bd0a (diff) | |
| download | rust-9e3f3306567f62086dcbb7f6a71f0a0c07db0de2.tar.gz rust-9e3f3306567f62086dcbb7f6a71f0a0c07db0de2.zip | |
Rollup merge of #106897 - estebank:issue-99430, r=davidtwco
Tweak E0597 CC #99430
Diffstat (limited to 'tests/ui/variance')
| -rw-r--r-- | tests/ui/variance/variance-issue-20533.stderr | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/variance/variance-issue-20533.stderr b/tests/ui/variance/variance-issue-20533.stderr index 008e2a002bb..258f67db5ce 100644 --- a/tests/ui/variance/variance-issue-20533.stderr +++ b/tests/ui/variance/variance-issue-20533.stderr @@ -1,6 +1,8 @@ error[E0505]: cannot move out of `a` because it is borrowed --> $DIR/variance-issue-20533.rs:28:14 | +LL | let a = AffineU32(1); + | - binding `a` declared here LL | let x = foo(&a); | -- borrow of `a` occurs here LL | drop(a); @@ -11,6 +13,8 @@ LL | drop(x); error[E0505]: cannot move out of `a` because it is borrowed --> $DIR/variance-issue-20533.rs:34:14 | +LL | let a = AffineU32(1); + | - binding `a` declared here LL | let x = bar(&a); | -- borrow of `a` occurs here LL | drop(a); @@ -21,6 +25,8 @@ LL | drop(x); error[E0505]: cannot move out of `a` because it is borrowed --> $DIR/variance-issue-20533.rs:40:14 | +LL | let a = AffineU32(1); + | - binding `a` declared here LL | let x = baz(&a); | -- borrow of `a` occurs here LL | drop(a); |
