Des exemples de code pour programmer en Rust
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

9 行
164 B

  1. fn main(){
  2. let num = 3 ;
  3. match num {
  4. 1 => println ! ("un"),
  5. 2 | 3 => println ! ("deux ou trois"), // motifs multiples
  6. _ => println ! ("autres"),
  7. }
  8. }