rustdoc: Fix method printing tests