fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
646 B15 linesraw
1error[E0053]: method `next` has an incompatible type for trait
2  --> $DIR/issue-21332.rs:5:27
3   |
4LL |     fn next(&mut self) -> Result<i32, i32> { Ok(7) }
5   |                           ^^^^^^^^^^^^^^^^
6   |                           |
7   |                           expected `Option<i32>`, found `Result<i32, i32>`
8   |                           help: change the output type to match the trait: `Option<i32>`
9   |
10   = note: expected signature `fn(&mut S) -> Option<i32>`
11              found signature `fn(&mut S) -> Result<i32, i32>`
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0053`.