2023-01-02 11:55:13 -06:00
|
|
|
error: the `min` method cannot be invoked on `&dyn Iterator<Item = &u64>`
|
2020-03-31 20:10:13 -05:00
|
|
|
--> $DIR/imm-ref-trait-object.rs:2:8
|
2019-10-03 19:10:37 -05:00
|
|
|
|
|
|
|
|
LL | t.min().unwrap()
|
|
|
|
| ^^^
|
|
|
|
|
|
2023-01-01 23:28:03 -06:00
|
|
|
help: you need `&mut dyn Iterator<Item = &u64>` instead of `&dyn Iterator<Item = &u64>`
|
|
|
|
|
|
|
|
|
LL | fn test(t: &mut dyn Iterator<Item=&u64>) -> u64 {
|
|
|
|
| +++
|
2019-10-03 19:10:37 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|