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
use std::marker::PhantomData;pubtraitFromPest<'a>:Sized{typeRule;constRULE:Self::Rule;}impl<'a,T>FromPest<'a>forPhantomData<T>whereT:FromPest<'a>,{typeRule = T::Rule;constRULE:T::Rule = T::RULE;}
error[E0277]: the trait bound `T: FromPest<'a>` is not satisfied
--> src/lib.rs:13:5
|
13 | const RULE: T::Rule = T::RULE;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromPest<'a>` is not implemented for `T`
|
= help: consider adding a `where T: FromPest<'a>` bound
I'm unsure as to whether this is a compiler bug or something I've missed, but at the very least, this error is less than helpful at exposing the actual issue.
The text was updated successfully, but these errors were encountered:
playground, r/rust thread (includes larger examples)
I'm unsure as to whether this is a compiler bug or something I've missed, but at the very least, this error is less than helpful at exposing the actual issue.
The text was updated successfully, but these errors were encountered: