We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 359a182 commit aa1fc1fCopy full SHA for aa1fc1f
active/0000-higher-ranked-trait-bounds.md
@@ -245,6 +245,12 @@ referred to
245
[Simon Peyton-Jones rather thorough but quite readable paper on the topic][spj]
246
or the documentation in
247
`src/librustc/middle/typeck/infer/region_inference/doc.rs`.
248
+
249
+The most important point is that the rules provide for subtyping that
250
+goes from "more general" to "less general". For example, if I have a
251
+trait reference like `for<'a> FnMut(&'a int)`, that would be usable
252
+wherever a trait reference with a concrete lifetime, like
253
+`FnMut(&'static int)`, is expected.
254
255
[spj]: http://research.microsoft.com/en-us/um/people/simonpj/papers/higher-rank/
256
0 commit comments