fixed error message thanks to #6

This commit is contained in:
Carl Fredrik Samson
2020-04-10 20:53:15 +02:00
parent 7d00580699
commit 4032c673e2
5 changed files with 5 additions and 5 deletions

View File

@@ -388,7 +388,7 @@ pub fn main() {
Test::init(test2.as_mut());
println!("a: {}, b: {}", Test::a(test1.as_ref()), Test::b(test1.as_ref()));
std::mem::swap(test1.as_mut(), test2.as_mut());
std::mem::swap(test1.get_mut(), test2.get_mut());
println!("a: {}, b: {}", Test::a(test2.as_ref()), Test::b(test2.as_ref()));
}
# use std::pin::Pin;