Fixed, this says that func will only borrow the API type passed in.

This commit is contained in:
Bill Thiede 2020-07-14 20:58:29 -07:00
parent 487f196403
commit 9090361cdf

View File

@ -21,7 +21,7 @@ struct Concrete {
count: isize,
}
fn func<A: API>(a: A) {
fn func<A: API>(a: &mut A) {
a.reset();
}