title: Scala: where to put the @unchecked annotation in a foreach
body: <p>I have the following:</p>
  
  <pre><code>samples.sliding(2).foreach{case List(a, b)=&gt; printf("%x %x\n", a.value, b.value)}
  </code></pre>
  
  <p>I know that the single 'case' will match all the possible values but I get a 'match is not exhaustive' warning.  The Scala book explains where to put the @unchecked annotation on a normal fully-specified match expression, but not for the form above.  How do I annotate the above to stop the compiler from complaining?</p>