2023-01-02 11:55:13 -06:00
|
|
|
error: the `min` method cannot be invoked on `&dyn Iterator<Item = &u64>`
|
2023-01-01 23:28:03 -06:00
|
|
|
--> $DIR/mutability-mismatch-arg.rs:3:9
|
|
|
|
|
|
|
|
|
LL | *t.min().unwrap()
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
help: you need `&mut dyn Iterator<Item = &u64>` instead of `&dyn Iterator<Item = &u64>`
|
|
|
|
|
|
|
|
|
LL | fn test(t: &mut dyn Iterator<Item=&u64>) -> u64 {
|
|
|
|
| +++
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-01-01 23:28:03 -06:00
|
|
|
|