diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-27 20:14:47 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-27 20:14:47 +0200 |
| commit | 001357f97197797bec534cc5ec5ae6fabcc01e21 (patch) | |
| tree | f05e159f7b08ad63e11dff358f4bea0b15f6529f | |
| parent | 99204028acce6b9ec3b93e361eb04667ea8a09c8 (diff) | |
| download | rust-001357f97197797bec534cc5ec5ae6fabcc01e21.tar.gz rust-001357f97197797bec534cc5ec5ae6fabcc01e21.zip | |
--bless --compare-mode=nll
| -rw-r--r-- | src/test/ui/issues/issue-45696-scribble-on-boxed-borrow.nll.stderr | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/test/ui/issues/issue-45696-scribble-on-boxed-borrow.nll.stderr b/src/test/ui/issues/issue-45696-scribble-on-boxed-borrow.nll.stderr deleted file mode 100644 index db0a1719922..00000000000 --- a/src/test/ui/issues/issue-45696-scribble-on-boxed-borrow.nll.stderr +++ /dev/null @@ -1,33 +0,0 @@ -error[E0713]: borrow may still be in use when destructor runs - --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:34:5 - | -LL | fn scribbled<'a>(s: Scribble<'a>) -> &'a mut u32 { - | -- lifetime `'a` defined here -LL | &mut *s.0 - | ^^^^^^^^^ returning this value requires that `*s.0` is borrowed for `'a` -LL | } - | - here, drop of `s` needs exclusive access to `*s.0`, because the type `Scribble<'_>` implements the `Drop` trait - -error[E0713]: borrow may still be in use when destructor runs - --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:39:5 - | -LL | fn boxed_scribbled<'a>(s: Box<Scribble<'a>>) -> &'a mut u32 { - | -- lifetime `'a` defined here -LL | &mut *(*s).0 - | ^^^^^^^^^^^^ returning this value requires that `*s.0` is borrowed for `'a` -LL | } - | - here, drop of `s` needs exclusive access to `*s.0`, because the type `Scribble<'_>` implements the `Drop` trait - -error[E0713]: borrow may still be in use when destructor runs - --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:44:5 - | -LL | fn boxed_boxed_scribbled<'a>(s: Box<Box<Scribble<'a>>>) -> &'a mut u32 { - | -- lifetime `'a` defined here -LL | &mut *(**s).0 - | ^^^^^^^^^^^^^ returning this value requires that `*s.0` is borrowed for `'a` -LL | } - | - here, drop of `s` needs exclusive access to `*s.0`, because the type `Scribble<'_>` implements the `Drop` trait - -error: aborting due to 3 previous errors - -For more information about this error, try `rustc --explain E0713`. |
