blob: 1b13f000b8c8cbd6196ad43e729e9af1338281e6 (
plain)
1
2
3
4
5
6
7
8
9
10
|
struct S;
impl Iterator for S {
type Item = i32;
fn next(&mut self) -> Result<i32, i32> { Ok(7) }
//~^ ERROR method `next` has an incompatible type for trait
//~| expected enum `Option`, found enum `std::result::Result`
}
fn main() {}
|