Why does stacked borrows treat reference parameters specially? #295
Labels
A-aliasing-model
Topic: Related to the aliasing model (e.g. Stacked/Tree Borrows)
C-support
Category: Supporting a user to solve a concrete problem
Why does stacked borrows treat reference parameters specially?
Naively, I would expect
fn foo(x: &u8, y: &u8)
andfn foo(xy: (&u8, &u8))
to be equivalent, but it appears that only in the former case are the references protected by a CallId. Is there an explanation for why it was decided to do things this way?The text was updated successfully, but these errors were encountered: