From a969a88c97be1847aa753bbe8e33a00a72bf3af2 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Thu, 13 Apr 2017 11:16:57 -0400 Subject: [PATCH] Clarify that was intentional --- second-edition/src/ch19-05-advanced-functions-and-closures.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/second-edition/src/ch19-05-advanced-functions-and-closures.md b/second-edition/src/ch19-05-advanced-functions-and-closures.md index 0c41e6558..260ea91dd 100644 --- a/second-edition/src/ch19-05-advanced-functions-and-closures.md +++ b/second-edition/src/ch19-05-advanced-functions-and-closures.md @@ -85,7 +85,8 @@ Because closures are represented by traits, returning closures is a little tricky; we can't do it directly. In most cases where we may want to return a trait, we can instead use the concrete type that implements the trait of what we're returning as the return value of the function. We can't do that with -closures, though; we're not allowed to use `fn` as a return type, for example. +closures, though. They don't have a concrete type that's returnable; we're not +allowed to use the function pointer `fn` as a return type, for example. This code that tries to return a closure directly won't compile: