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
The following test should successfully compile but does not:
/// A trait for types that can be converted from a given error type `E`.pubtraitFromError<E>{/// Perform the conversion.fnfrom_error(err:E) -> Self;}// Any type is convertable from itselfimpl<E>FromError<E>forE{fnfrom_error(err:E) -> E{
err
}}fntest() -> Result<(),()>{Err(FromError::from_error(()))}fnmain(){let result = (|| Err(FromError::from_error(())))();let foo:() = result.unwrap();}
Fix forthcoming.
The text was updated successfully, but these errors were encountered:
nikomatsakis
changed the title
Multidispatch inference feailure
Multidispatch inference failure
Oct 13, 2014
The following test should successfully compile but does not:
Fix forthcoming.
The text was updated successfully, but these errors were encountered: