Make func non-mut (doesn't change anything).

This commit is contained in:
Bill Thiede 2020-07-14 19:21:57 -07:00
parent 86bd20d074
commit 487f196403

View File

@ -3,7 +3,7 @@
//! error[E0277]: the trait bound `&mut Concrete: API` is not satisfied
//! --> src/lib.rs:32:14
//! |
//! 24 | fn func<A: API>(mut a: A) {
//! 24 | fn func<A: API>(a: A) {
//! | --- required by this bound in `func`
//! ...
//! 32 | func(self);
@ -21,7 +21,7 @@ struct Concrete {
count: isize,
}
fn func<A: API>(mut a: A) {
fn func<A: API>(a: A) {
a.reset();
}