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
For example, function f is rejected with an error that a needs dropping, while g succeeds even though it should use more conservative qualification because it uses an opaque function id:
pubconstfnid<T>(t:T) -> T{ t }pubconstfnf() -> String{let s = String::new();letmut a:(Option<String>,Option<&String>) = (None,None);
a.1 = Some(&s);
s
}pubconstfng() -> String{let s = String::new();letmut a:(Option<String>,Option<&String>) = (None,None);
a.1 = Some(id(&s));
s
}