match_placeholder.carbon 333 B

1234567891011
  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 t: auto = (1, 2, 3, 4);
  6. match (t) {
  7. case (_: Int, _: auto, x: Int, y: auto) =>
  8. return y - x - 1;
  9. }
  10. }