]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/enum-variant-arg-mismatch.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / enum-variant-arg-mismatch.rs
1 pub enum Sexpr<'a> {
2     Ident(&'a str),
3 }
4
5 fn map<'a, F: Fn(String) -> Sexpr<'a>>(f: F) {}
6
7 fn main() {
8     map(Sexpr::Ident);
9     //~^ ERROR type mismatch in function arguments
10 }