Hi Rustceans!
Right now Im learning rust and Im trying to understand why we should Help borrow checker to understand life times.
the only thing it needs to do is :
1.analyze the function and see which parameters have to potential of being returned and become the functions result
2. if there is not one -> show error
3. if there is only one -> that one should be it
4. if there are more than one -> those parameters and result should all have a similiar lifetime ( for example 'a )
plus: the place that the function is called can give borrow checker more evidence to see if that piece of code is safe or not
There are enough data for it to judje safety + Specifying life times is just verbose and ugly.
should I request this from rust developers or Im missing something?