diff options
Diffstat (limited to 'src/test/ui/nll/maybe-initialized-drop-with-fragment.stderr')
-rw-r--r-- | src/test/ui/nll/maybe-initialized-drop-with-fragment.stderr | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/nll/maybe-initialized-drop-with-fragment.stderr b/src/test/ui/nll/maybe-initialized-drop-with-fragment.stderr deleted file mode 100644 index 14074472e..000000000 --- a/src/test/ui/nll/maybe-initialized-drop-with-fragment.stderr +++ /dev/null @@ -1,14 +0,0 @@ -error[E0506]: cannot assign to `x` because it is borrowed - --> $DIR/maybe-initialized-drop-with-fragment.rs:19:5 - | -LL | let wrap = Wrap { p: &mut x }; - | ------ borrow of `x` occurs here -... -LL | x = 1; - | ^^^^^ assignment to borrowed `x` occurs here -LL | } - | - borrow might be used here, when `foo` is dropped and runs the destructor for type `Foo<'_>` - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0506`. |