]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/imm-ref-trait-object.rs
Auto merge of #65099 - pnkfelix:issue-63154-needed-more-normalize, r=nagisa
[rust.git] / src / test / ui / suggestions / imm-ref-trait-object.rs
1 fn test(t: &dyn Iterator<Item=&u64>) -> u64 {
2      t.min().unwrap() //~ ERROR the `min` method cannot be invoked on a trait object
3 }
4
5 fn main() {
6      let array = [0u64];
7      test(&mut array.iter());
8 }