Fixed, this says that func will only borrow the API type passed in.
This commit is contained in:
parent
487f196403
commit
9090361cdf
@ -21,7 +21,7 @@ struct Concrete {
|
||||
count: isize,
|
||||
}
|
||||
|
||||
fn func<A: API>(a: A) {
|
||||
fn func<A: API>(a: &mut A) {
|
||||
a.reset();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user