Closed
Description
Program:
fn main() {
Vec::from_iter();
}
Output:
fri.rs:2:5: 2:19 error: type `collections::vec::Vec<_>` does not implement any method in scope named `from_iter`
fri.rs:2 Vec::from_iter();
^~~~~~~~~~~~~~
fri.rs:2:19: 2:19 help: methods from traits can only be called if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it:
fri.rs:2:19: 2:19 help: candidate #1: use `core::iter::FromIterator`
error: aborting due to previous error
Note that it suggests core::iter::FromIterator
when it could be suggesting std::iter::FromIterator
. Should a user follow this advice, they would need to also link libcore via extern crate core
, which (IIRC) means that they will be opting out of 1.0-stable thanks to core's intentional lack of stability.
I don't know if it's worth nominating, but this is definitely a backcompat hazard for users.