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

@@ -1966,7 +1966,7 @@ you'll get a compilation error.</p>
Test::init(test2.as_mut());
println!(&quot;a: {}, b: {}&quot;, 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!(&quot;a: {}, b: {}&quot;, Test::a(test2.as_ref()), Test::b(test2.as_ref()));
}
# use std::pin::Pin;