about summary refs log tree commit diff
path: root/tests/ui/errors/dynless-turbofish-e0191-issue-91997.rs
blob: d6bb64662270e71c676a1f4eb907c8fd10df6ee5 (plain)
1
2
3
4
5
6
7
8
9
//@ edition:2015
trait MyIterator : Iterator {}

fn main() {
    let _ = MyIterator::next;
}
//~^^ ERROR the value of the associated type `Item` in `Iterator` must be specified [E0191]
//~| WARN trait objects without an explicit `dyn` are deprecated [bare_trait_objects]
//~| WARN this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!