首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么编译位标志1.0会产生"expected,found #“错误?

为什么编译位标志1.0会产生"expected,found #“错误?
EN

Stack Overflow用户
提问于 2017-12-07 04:35:22
回答 0查看 274关注 0票数 2

当我尝试在macOS sera10.12.6中使用位标志v1.0.1在Rust中构建一个项目时,代码失败,并显示以下错误:

代码语言:javascript
复制
Compiling bitflags v1.0.1
error: expected ident, found #
   --> /Users/kenneth.marete/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.0.1/src/lib.rs:423:29
    |
423 |                               #[allow(deprecated)]
    |                               ^
    | 
   ::: /Users/kenneth.marete/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.0.1/src/example_generated.rs
    |
4   | / bitflags! {
5   | |     /// This is the same `Flags` struct defined in the [crate level example](../index.html#example).
6   | |     /// Note that this struct is just for documentation purposes only, it must not be used outside
7   | |     /// this crate.
...   |
13  | |     }
14  | | }
    | |_- in this macro invocation

我希望它能成功构建。

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47683027

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档