We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
a
b
1 parent 81c03c2 commit 541196dCopy full SHA for 541196d
src/04_pinning/01_chapter.md
@@ -533,10 +533,12 @@ The type system prevents us from moving the data.
533
> # this.b = self_ptr;
534
> # }
535
> #
536
+> # #[allow(unused)]
537
> # fn a<'a>(self: Pin<&'a Self>) -> &'a str {
538
> # &self.get_ref().a
539
540
541
542
> # fn b<'a>(self: Pin<&'a Self>) -> &'a String {
543
> # assert!(!self.b.is_null(), "Test::b called without Test::init being called first");
544
> # unsafe { &*(self.b) }
0 commit comments