blob: c5fe6ddb8a9bf852794b02a36795ab89851a0dd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error: the `min` method cannot be invoked on a trait object
--> $DIR/imm-ref-trait-object.rs:7:8
|
LL | t.min().unwrap()
| ^^^
|
::: $SRC_DIR/libcore/iter/traits/iterator.rs:LL:COL
|
LL | Self: Sized,
| ----- this has a `Sized` requirement
|
= note: you need `&mut dyn std::iter::Iterator<Item = &u64>` instead of `&dyn std::iter::Iterator<Item = &u64>`
error: aborting due to previous error
|