Open ytkimirti opened 1 year ago
Hi, thank you for the report, but it looks like internal Rust's compile problem.
The same problem is reported here: https://github.com/rust-lang/rust-analyzer/issues/10677.
I'm going to investigate it a little more.
Rust newbie here. I was trying out sample code but Response::try_into throws compilers error on newer rust editions.
Reproduce
Cargo.toml
to2021
cargo check
warning: use of deprecated associated function
chrono::Date::<Tz>::and_hms
: Use and_hms_opt() instead --> src/main.rs:73:34 | 73 | dob: Utc.ymd(1980, 1, 1).and_hms(23, 0, 0), | ^^^^^^^All: From<Response>
is not satisfied --> src/main.rs:136:25From<Response>
is not implemented forAll
For more information about this error, try
rustc --explain E0277
. warning:simple
(bin "simple") generated 2 warnings error: could not compilesimple
due to previous error; 2 warnings emittedAnd
Response
implements the try_into function.