more complete error message

This commit is contained in:
Niko Matsakis 2017-01-17 17:55:49 -05:00
parent 8848c38758
commit 2bade8133c

View File

@ -9,7 +9,7 @@
// except according to those terms.
fn foo<T: Iterator>() {
T::Item; //~ ERROR no associated item named `Item` found for type `T`
T::Item; //~ ERROR no associated item named `Item` found for type `T` in the current scope
}
fn main() { }