Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Rusky
· 7y ago · 0 comments
No, it's bits of valid syntax thrown together informally to express an idea. There is no `!:` in Rust, and that `for` quantification never applies to types or bounds that way.
Comments
[–]
withoutboats
7y ago
(and the idea I was expressing was "shared references never under any circumstance implement the DerefMut trait")
[–]
bascule
6y ago
`for` used in a bound (in conjunction with a lifetime) is the syntax for Higher-Rank Trait Bounds (HRTB):
https://doc.rust-lang.org/beta/nomicon/hrtb.html
[–]
Rusky
OP
6y ago
Yes, but it's not used that way in this snippet...