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