--> $DIR/issue-21332.rs:5:5
|
LL | fn next(&mut self) -> Result<i32, i32> { Ok(7) }
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found enum `std::result::Result`
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found enum `Result`
|
= note: expected fn pointer `fn(&mut S) -> Option<i32>`
- found fn pointer `fn(&mut S) -> std::result::Result<i32, i32>`
+ found fn pointer `fn(&mut S) -> Result<i32, i32>`
error: aborting due to previous error