generic_function_fail2.carbon 278 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 id[T:! Type](x: Int) -> Int {
  5. return x;
  6. }
  7. fn main() -> Int {
  8. return id(0);
  9. }