about summary refs log tree commit diff
path: root/tests/ui/illegal-sized-bound/mutability-mismatch-arg.stderr
blob: b5ca62f4e23def8084f25b2a784b3aff059eebdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: the `min` method cannot be invoked on `&dyn Iterator<Item = &u64>`
  --> $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 {
   |             +++

error: aborting due to 1 previous error