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