blob: 35a6acca52c7dd836e49263e4045b1588b083364 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
trait Iterable {
type Item;
fn iter(&self) -> impl Sized;
}
// `ty::Error` in a trait ref will silence any missing item errors, but will also
// prevent the `associated_items` query from being called before def ids are frozen.
impl Iterable for Missing {
//~^ ERROR cannot find type `Missing` in this scope
fn iter(&self) -> Self::Item {}
}
fn main() {}
|