]> git.lizzy.rs Git - rust.git/blob - tests/ui/illegal-sized-bound/mutability-mismatch-arg.stderr
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / illegal-sized-bound / mutability-mismatch-arg.stderr
1 error: the `min` method cannot be invoked on `&dyn Iterator<Item = &u64>`
2   --> $DIR/mutability-mismatch-arg.rs:3:9
3    |
4 LL |      *t.min().unwrap()
5    |         ^^^
6    |
7 help: you need `&mut dyn Iterator<Item = &u64>` instead of `&dyn Iterator<Item = &u64>`
8    |
9 LL | fn test(t: &mut dyn Iterator<Item=&u64>) -> u64 {
10    |             +++
11
12 error: aborting due to previous error
13