From d9808cba39085662302c411af93239037ccc323e Mon Sep 17 00:00:00 2001 From: Michal 'vorner' Vaner Date: Sat, 17 Nov 2018 17:34:47 +0100 Subject: [PATCH] A little note that HRTBs can be used for types too --- src/hrtb.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hrtb.md b/src/hrtb.md index 645986a..83d6c3f 100644 --- a/src/hrtb.md +++ b/src/hrtb.md @@ -71,3 +71,6 @@ trait) *infinite list* of trait bounds that F must satisfy. Intense. There aren't many places outside of the `Fn` traits where we encounter HRTBs, and even for those we have a nice magic sugar for the common cases. + +Of course, you *can* use HRTBs for type parameters too, not just for lifetimes - +but that's even rarer.