lit!();
常數類型,不與fn輸入值有關
包含 call(lit!())
expr!(...)
...
為expr
牽扯的變數
fn test_1(a: T) -> T {
let a = lit!();
take(a);
a + lit!()
}
fn take(_: T) {}
fn test_2(a: T) -> T {
a.map(|x| expr!(x))
}
fn test_3(a: T, b: T) -> T {
if a < b {
a
} else {
b
}
}
fn test_4(a: T,b: T) -> T {
a.call(b)
}
fn test_5(a: T, b: T) -> T {
let c = a + b;
let d = c * a;
d
}