]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/enum-variant-arg-mismatch.stderr
Merge from rustc
[rust.git] / src / test / ui / suggestions / enum-variant-arg-mismatch.stderr
1 error[E0631]: type mismatch in function arguments
2   --> $DIR/enum-variant-arg-mismatch.rs:8:9
3    |
4 LL |     Ident(&'a str),
5    |     ----- found signature defined here
6 ...
7 LL |     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) -> _`
14 note: required by a bound in `map`
15   --> $DIR/enum-variant-arg-mismatch.rs:5:15
16    |
17 LL | fn map<'a, F: Fn(String) -> Sexpr<'a>>(f: F) {}
18    |               ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `map`
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0631`.