2019-10-03 19:10:37 -05:00
|
|
|
error: the `min` method cannot be invoked on a trait object
|
|
|
|
--> $DIR/imm-ref-trait-object.rs:2:8
|
|
|
|
|
|
|
|
|
LL | t.min().unwrap()
|
|
|
|
| ^^^
|
2020-01-30 22:12:46 -06:00
|
|
|
|
|
|
|
|
::: $SRC_DIR/libcore/iter/traits/iterator.rs:LL:COL
|
|
|
|
|
|
|
|
|
LL | Self: Sized,
|
|
|
|
| ----- this has a `Sized` requirement
|
2019-10-03 19:10:37 -05:00
|
|
|
|
|
2019-10-03 19:39:58 -05:00
|
|
|
= note: you need `&mut dyn std::iter::Iterator<Item = &u64>` instead of `&dyn std::iter::Iterator<Item = &u64>`
|
2019-10-03 19:10:37 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|