]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/imm-ref-trait-object.stderr
Auto merge of #106025 - matthiaskrgr:rollup-vz5rqah, r=matthiaskrgr
[rust.git] / src / test / ui / suggestions / imm-ref-trait-object.stderr
1 error: the `min` method cannot be invoked on a trait object
2   --> $DIR/imm-ref-trait-object.rs:2:8
3    |
4 LL |      t.min().unwrap()
5    |        ^^^
6   --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
7    |
8    = note: this has a `Sized` requirement
9    |
10    = note: you need `&mut dyn Iterator<Item = &u64>` instead of `&dyn Iterator<Item = &u64>`
11
12 error: aborting due to previous error
13