1 error[E0308]: mismatched types
2 --> $DIR/issue-87490.rs:9:5
4 LL | fn follow(_: &str) -> <&str as StreamOnce>::Position {
5 | ------------------------------ expected `usize` because of return type
7 | ^^^^^^^^^^^ expected `usize`, found fn item
9 = note: expected type `usize`
10 found fn item `fn() -> String {String::new}`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.