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
trait Example {
fn foo() -> ::core::result::Result<(), Error> {
<_ as ::fehler::__internal::_Succeed>::from_ok(())
}
}
This inserts a default method for the trait which has two annoying effects:
Complaints about an extra semi-colon
No complaints in trait implementations that don't provide what should be a required method.
This is using rust 1.42.0 with fehler 1.0.0.
The problem appears to be in Throws::fold because the trait method is parsed by parse for ImplItemMethod. The implementation of this function in syn includes this comment:
// Accept methods without a body in an impl block because
// rustc's *parser* does not reject them (the compilation error
// is emitted later than parsing) and it can be useful for macro
// DSLs.
which causes this problem.
The text was updated successfully, but these errors were encountered:
This code:
expands to this:
This inserts a default method for the trait which has two annoying effects:
This is using rust 1.42.0 with fehler 1.0.0.
The problem appears to be in
Throws::fold
because the trait method is parsed byparse
forImplItemMethod
. The implementation of this function in syn includes this comment:which causes this problem.
The text was updated successfully, but these errors were encountered: