温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有

The definition of fragment specifier is inconsistent · Issue #2265 · rust-lang/reference · GitHub

来源:github.com

Consider this example: macro_rules! test{ ($id:ident, $e:expr)=>{ $id.$e } } fn main() { let a = (1,); test!(a,0); } The compiler reports an error error: unexpected token: `expr` metavariable --> src/main.rs:3:13 | 3 | $…

以上为公开页面信息摘要,完整内容请前往原网站阅读。

前往原网站阅读全文

热门推荐记录