Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
alexchamberlain
· 3y ago · 0 comments
No, the following would be valid (if a little pointless):
fn foo(x: &'a T) -> &'a T { x }
Comments
[–]
sapiogram
3y ago
Your example changed the type of the function, though. I'm assuming there is no `&T` in the function's output type.
[–]
alexchamberlain
OP
3y ago
Oh sorry; I had misunderstood the question.