fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types 2 --> $DIR/issue-80179.rs:10:24 3 | 4LL | fn returns_fn_ptr() -> _ { 5 | ^ 6 | | 7 | not allowed in type signatures 8 | help: replace with the correct return type: `fn() -> i32` 9 10error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types 11 --> $DIR/issue-80179.rs:18:25 12 | 13LL | fn returns_closure() -> _ { 14 | ^ 15 | | 16 | not allowed in type signatures 17 | help: replace with an appropriate return type: `impl Fn() -> i32` 18 | 19 = note: for more information on `Fn` traits and closure types, see https://doc.rust-lang.org/book/ch13-01-closures.html 20 21error: aborting due to 2 previous errors 22 23For more information about this error, try `rustc --explain E0121`.