You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use clap::{App, arg};fnmain(){println!("Hello, world!");let args = App::new("").args(&[arg!(<FILE> "file to show"),arg!(--filter [filter]"filter type: Nearest,Triangle,CatmullRom,Gaussian,Lanczos3"),arg!(-s --"scale_font"[scale_font]"scale of font to correct image"),]).get_matches();println!("File: {:?}", args.value_of("FILE"))}
Steps to reproduce the bug with the above code
On wsl inside Windows 10.
uname -a
Linux HOME-PC 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
cargo build
Actual Behaviour
cargo build
Compiling libc v0.2.112
Compiling memchr v2.4.1
Compiling indexmap v1.8.0
Compiling os_str_bytes v6.0.0
Compiling atty v0.2.14
Compiling clap v3.0.7
error[E0658]: arbitrary expressions in key-value attributes are unstable
--> /home/nrot/.cargo/registry/src/github.51.al-1ecc6299db9ec823/clap-3.0.7/src/lib.rs:8:39
|
8 | #![cfg_attr(feature = "derive", doc = include_str!("../README.md"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #78835 rust-lang/rust#78835 for more information
error: aborting due to previous error
For more information about this error, try rustc --explain E0658.
error: could not compile clap
To learn more, run the command again with --verbose.
error[E0658]: arbitrary expressions in key-value attributes are unstable
--> /home/nrot/.cargo/registry/src/github.51.al-1ecc6299db9ec823/clap_derive-3.0.6/src/lib.rs:16:10
|
16 | #![doc = include_str!("../README.md")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #78835 rust-lang/rust#78835 for more information
error: aborting due to previous error
For more information about this error, try rustc --explain E0658.
error: could not compile clap_derive
To learn more, run the command again with --verbose.
The text was updated successfully, but these errors were encountered:
Please complete the following tasks
Rust Version
rustc 1.53.0
Clap Version
3.0.7
Minimal reproducible code
Steps to reproduce the bug with the above code
On wsl inside Windows 10.
Actual Behaviour
cargo build
Compiling libc v0.2.112
Compiling memchr v2.4.1
Compiling indexmap v1.8.0
Compiling os_str_bytes v6.0.0
Compiling atty v0.2.14
Compiling clap v3.0.7
error[E0658]: arbitrary expressions in key-value attributes are unstable
--> /home/nrot/.cargo/registry/src/github.51.al-1ecc6299db9ec823/clap-3.0.7/src/lib.rs:8:39
|
8 | #![cfg_attr(feature = "derive", doc = include_str!("../README.md"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #78835 rust-lang/rust#78835 for more information
error: aborting due to previous error
For more information about this error, try
rustc --explain E0658
.error: could not compile
clap
To learn more, run the command again with --verbose.
Expected Behaviour
The build app
Additional Context
rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/nrot/.rustup
installed toolchains
stable-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu
active toolchain
stable-x86_64-unknown-linux-gnu (default)
rustc 1.58.0 (02072b482 2022-01-11
Debug Output
error[E0658]: arbitrary expressions in key-value attributes are unstable
--> /home/nrot/.cargo/registry/src/github.51.al-1ecc6299db9ec823/clap_derive-3.0.6/src/lib.rs:16:10
|
16 | #![doc = include_str!("../README.md")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #78835 rust-lang/rust#78835 for more information
error: aborting due to previous error
For more information about this error, try
rustc --explain E0658
.error: could not compile
clap_derive
To learn more, run the command again with --verbose.
The text was updated successfully, but these errors were encountered: