As noted in What is the preferrred method for formatting code?, the "Ask a question" sidebar that shows up while writing the body of a new question suggests to "indent code by 4 spaces" even though its example of code block formatting uses fenced blocks, as seen in this screenshot (taken from the aforementioned Meta question):
There seems to be no need to show two essentially equivalent ways of doing the same thing in a quick summary aimed at new askers like this one. That being so, the "indent code by 4 spaces" line probably should be removed, assuming that fenced blocks are supposed to be the primary recommendation. (Conversely, if the example were to be changed to indented blocks, no mention of fenced blocks should be necessary.)
<!-- language: rust -->
just before the code block will do. See meta.stackoverflow.com/q/274371/2751851 for details.