使用rust-s3
机箱运行cargo check
时出错。我发现的所有文件似乎都表明这是一个已解决的问题。
我是否在Cargo.toml中缺少设置、选项或其他内容?
这是检查错误:
error[E0658]: naming constants with `_` is unstable
--> /Users/andrevan/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.4/src/bytes.rs:911:1
|
911 | const _: [(); 0 - mem::align_of::<Shared>() % 2] = []; // Assert that the alignment of `Shared` is divisible by 2.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/54912
由于@SCappella的评论,我发现我使用的是比下划线修复程序旧的安装了brew
的Rust版本。
我brew remove rust
,然后重新安装了Rust工具链,它现在可以工作了。
谢谢@sCapella。