rust/src/test/ui/error-codes
Esteban Küber d3c96f03b5 Suggest -> impl Trait and -> Box<dyn Trait> on fn that doesn't return
During development, a function could have a return type set that is a
bare trait object by accident. We already suggest using either a boxed
trait object or `impl Trait` if the return paths will allow it. We now
do so too when there are *no* return paths or they all resolve to `!`.
We still don't handle cases where the trait object is *not* the entirety
of the return type gracefully.
2020-04-20 09:24:41 -07:00
..
2020-03-26 15:49:22 +00:00
2020-03-26 15:49:22 +00:00
2020-03-26 15:49:22 +00:00
2020-03-26 15:49:22 +00:00
2020-03-26 15:49:22 +00:00
2020-03-26 15:49:22 +00:00
2020-03-26 15:49:22 +00:00
2020-03-26 15:49:22 +00:00
2020-03-26 15:49:22 +00:00
2020-03-26 15:49:22 +00:00
2020-03-30 19:34:16 +02:00