I am trying to run this
use std::collections::BTreeSet;
pub struct IntoIter<T> {
iter: BTreeSet<T>::IntoIter,
}
fn main() {}
This fails with
error[E0223]: ambiguous associated type
--> src/main.rs:4:11
|
4 | iter: BTreeSet<T>::IntoIter,
| ^^^^^^^^^^^^^^^^^^^^^ ambiguous associated type
|
Why is the associated type ambiguous?