Closed
Description
How do I send a heap String
to App::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 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`
Sample Code or Link to Sample Code
Metadata
Metadata
Assignees
Labels
No labels