Why do these both structs differ in the way they are affected by lifetimes
问题 This is a follow up question to: How to fix: cannot infer an appropriate lifetime for automatic coercion. I wonder why do these both structs differ in the way they are affected by lifetimes. Example 1 use http; pub struct Request<'a> { pub origin: &'a http::server::Request, } Example 2 use http; pub struct Response<'a, 'b> { pub origin: &'a mut http::server::ResponseWriter<'b>, } They look pretty much similar to me except that the second one holds a mutable reference whereas the first one