feat: use 语句 — use module::item 导入模块符号
修复审查 #2: use 语句从 skippable TODO 实现为完整符号导入 use math_mod::add → 加载模块, 匹配 pub 函数/结构体/枚举, 零前缀导入 新增 37_use.l 集成测试 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
use math_mod::add;
|
||||
|
||||
fn main() -> i64 {
|
||||
print_i64(add(3, 4));
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user