]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/imm-ref-trait-object.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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 `&dyn Iterator<Item = &u64>`
3 }
4
5 fn main() {
6      let array = [0u64];
7      test(&mut array.iter());
8 }