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