no_match.carbon 292 B

123456789101112
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. fn main() -> Int {
  5. var x: Int = 0;
  6. match (x) {
  7. case 1 =>
  8. return 1;
  9. }
  10. return 0;
  11. }