diff options
| author | Josh Stone <jistone@redhat.com> | 2020-04-17 13:59:14 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2020-04-17 13:59:14 -0700 |
| commit | ccecae5fdd27fa7695fd45c98ff755029a750eb7 (patch) | |
| tree | 805b8f0ac90ac90ac76588663dbf98dc7bd0d689 /src/test/ui/imports | |
| parent | 7c4ca59f4b10d20f0f3e902f847641311abb093c (diff) | |
| download | rust-ccecae5fdd27fa7695fd45c98ff755029a750eb7.tar.gz rust-ccecae5fdd27fa7695fd45c98ff755029a750eb7.zip | |
Fix unused results from mem::replace
Diffstat (limited to 'src/test/ui/imports')
| -rw-r--r-- | src/test/ui/imports/import-in-block.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/imports/import-in-block.rs b/src/test/ui/imports/import-in-block.rs index c0ba6220b54..19703904ece 100644 --- a/src/test/ui/imports/import-in-block.rs +++ b/src/test/ui/imports/import-in-block.rs @@ -4,7 +4,7 @@ pub fn main() { use std::mem::replace; let mut x = 5; - replace(&mut x, 6); + let _ = replace(&mut x, 6); { use std::mem::*; let mut y = 6; |
