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
Can't pass a String either by-value or by borrow to about. Error message:
error[E0277]: the trait bound `&str: std::convert::From<&std::string::String>` is not satisfied
--> src/main.rs:12:34
|
12 | let matches = App::new(NAME).about(&description).get_matches();
| ^^^^^ the trait `std::convert::From<&std::string::String>` is not implemented for `&str`
|
= note: required because of the requirements on the impl of `std::convert::Into<&str>` for `&std::string::String`
How do I send a heap
String
toApp::description
?Rust Version and Affected Version of clap
Rust 2018 from the playground
Bug Summary
Can't pass a
String
either by-value or by borrow toabout
. Error message:Sample Code or Link to Sample Code
https://play.rust-lang.org/?gist=15667c16c7d853ce4a668dfb453948b6&version=nightly&mode=debug&edition=2018
The text was updated successfully, but these errors were encountered: