Make func non-mut (doesn't change anything).
This commit is contained in:
parent
86bd20d074
commit
487f196403
@ -3,7 +3,7 @@
|
|||||||
//! error[E0277]: the trait bound `&mut Concrete: API` is not satisfied
|
//! error[E0277]: the trait bound `&mut Concrete: API` is not satisfied
|
||||||
//! --> src/lib.rs:32:14
|
//! --> 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`
|
//! | --- required by this bound in `func`
|
||||||
//! ...
|
//! ...
|
||||||
//! 32 | func(self);
|
//! 32 | func(self);
|
||||||
@ -21,7 +21,7 @@ struct Concrete {
|
|||||||
count: isize,
|
count: isize,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn func<A: API>(mut a: A) {
|
fn func<A: API>(a: A) {
|
||||||
a.reset();
|
a.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user