fail_nested_binding.carbon 590 B

1234567891011121314151617
  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. //
  5. // NOAUTOUPDATE
  6. package ExplorerTest api;
  7. // If support for this is added, it'll be necessary to verify that either the
  8. // implementation is shared with locals or that tests are copied over for edge
  9. // cases.
  10. // CHECK:STDERR: SYNTAX ERROR: fail_nested_binding.carbon:[[@LINE+1]]: syntax error, unexpected LEFT_PARENTHESIS, expecting identifier
  11. var (x: i32,);
  12. fn Main() -> i32 {
  13. return 0;
  14. }