fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0631]: type mismatch in function arguments 2 --> $DIR/enum-variant-arg-mismatch.rs:8:9 3 | 4LL | Ident(&'a str), 5 | ----- found signature defined here 6... 7LL | map(Sexpr::Ident); 8 | --- ^^^^^^^^^^^^ expected due to this 9 | | 10 | required by a bound introduced by this call 11 | 12 = note: expected function signature `fn(String) -> _` 13 found function signature `fn(&str) -> _` 14note: required by a bound in `map` 15 --> $DIR/enum-variant-arg-mismatch.rs:5:15 16 | 17LL | fn map<'a, F: Fn(String) -> Sexpr<'a>>(f: F) {} 18 | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `map` 19 20error: aborting due to previous error 21 22For more information about this error, try `rustc --explain E0631`.