函数

定义

#![allow(unused)] fn main() { fn hello(x: i8, y: char) -> res { x + 5 } }

{% hint style="warning" %}

  1. 表达式结果会直接给res {% endhint %}