We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38e7316 + 541196d commit c54cc31Copy full SHA for c54cc31
src/04_pinning/01_chapter.md
@@ -553,10 +553,12 @@ note: required by a bound in `std::pin::Pin::<&'a mut T>::get_mut`
553
> # this.b = self_ptr;
554
> # }
555
> #
556
+> # #[allow(unused)]
557
> # fn a<'a>(self: Pin<&'a Self>) -> &'a str {
558
> # &self.get_ref().a
559
560
561
562
> # fn b<'a>(self: Pin<&'a Self>) -> &'a String {
563
> # assert!(!self.b.is_null(), "Test::b called without Test::init being called first");
564
> # unsafe { &*(self.b) }
0 commit comments