summary refs log tree commit diff
path: root/src/test/ui/suggestions/imm-ref-trait-object.rs
blob: 241dde9fec1d61e2d116f36fc8f267884cacee00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// FIXME: missing sysroot spans (#53081)
// ignore-i586-unknown-linux-gnu
// ignore-i586-unknown-linux-musl
// ignore-i686-unknown-linux-musl

fn test(t: &dyn Iterator<Item=&u64>) -> u64 {
     t.min().unwrap() //~ ERROR the `min` method cannot be invoked on a trait object
}

fn main() {
     let array = [0u64];
     test(&mut array.iter());
}