mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
14 lines
377 B
Plaintext
14 lines
377 B
Plaintext
error: the `min` method cannot be invoked on `&dyn Iterator<Item = &u64>`
|
|
--> $DIR/imm-ref-trait-object.rs:2:8
|
|
|
|
|
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 {
|
|
| +++
|
|
|
|
error: aborting due to 1 previous error
|
|
|