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
Either the where form for ?Sized should be supported, or the documentation generator shouldn't normalize them. Either way is fine (although for consistency, it would seem the former would be better than the latter), but the current status quo is just confusing: you sometimes don't pick up valid syntax from the documentation.
The text was updated successfully, but these errors were encountered:
Rust documentation apparently normalizes all generics to use the form
where ....
, which leads to constructs such as:(from https://doc.rust-lang.org/std/convert/trait.AsRef.html)
except that's not valid Rust:
The valid form is:
Either the where form for
?Sized
should be supported, or the documentation generator shouldn't normalize them. Either way is fine (although for consistency, it would seem the former would be better than the latter), but the current status quo is just confusing: you sometimes don't pick up valid syntax from the documentation.The text was updated successfully, but these errors were encountered: