>>cargo build
Ошибка компиляции hello_world v0.1.0 (/ home / ayushi / hello_world) [E0277]: ограничение черты hyper::header::SetCookie: iron::headers::Header
не выполнено -> src / main.rs: 47: 7 | 47 | / SetCook ie (ve c! [48 | | String :: from ("SID = 90320; Path = /; SameSite = Нет; безопасный;") 49 | |]) | | ________ ^ черта iron::headers::Header
не реализована для hyper::header::SetCookie
error[E0277]: the trait bound `hyper::header::SetCookie: iron::headers::HeaderFormat` is not satisfied
--> src/main.rs:47:7
|
47 | / SetCookie(vec![
48 | | String::from("SID=90320; Path=/; SameSite=None; Secure;")
49 | | ])
| |________^ the trait `iron::headers::HeaderFormat` is not implemented for `hyper::header::SetCookie`
error[E0277]: the trait bound `hyper::header::SetCookie: iron::headers::Header` is not satisfied
--> src/main.rs:52:7
|
52 | / SetCookie(vec![
53 | | String::from("utm_source=tutree; Path=/; SameSite=None; Secure;")
54 | | ])
| |________^ the trait `iron::headers::Header` is not implemented for `hyper::header::SetCookie`
error[E0277]: the trait bound `hyper::header::SetCookie: iron::headers::HeaderFormat` is not satisfied
--> src/main.rs:52:7
|
52 | / SetCookie(vec![
53 | | String::from("utm_source=tutree; Path=/; SameSite=None; Secure;")
54 | | ])
| |________^ the trait `iron::headers::HeaderFormat` is not implemented for `hyper::header::SetCookie`
error[E0308]: mismatched types
--> src/main.rs:57:34
|
57 | resp.headers.set(ContentType(Mime(TopLevel::Text, SubLevel::Html, vec![])));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `hyper::mime::Mime`, found struct `iron::mime::Mime`
|
= note: expected type `hyper::mime::Mime`
found type `iron::mime::Mime`
note: Perhaps two different versions of crate `mime` are being used?
--> src/main.rs:57:34
|
57 | resp.headers.set(ContentType(Mime(TopLevel::Text, SubLevel::Html, vec![])));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `hyper::header::ContentType: iron::headers::Header` is not satisfied
--> src/main.rs:57:22
|
57 | resp.headers.set(ContentType(Mime(TopLevel::Text, SubLevel::Html, vec![])));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `iron::headers::Header` is not implemented for `hyper::header::ContentType`
error[E0277]: the trait bound `hyper::header::ContentType: iron::headers::HeaderFormat` is not satisfied
--> src/main.rs:57:22
|
57 | resp.headers.set(ContentType(Mime(TopLevel::Text, SubLevel::Html, vec![])));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `iron::headers::HeaderFormat` is not implemented for `hyper::header::ContentType`
error: aborting due to 7 previous errors
Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `hello_world`.