blob: 36d15fc35b48a6551dfc53848d7b585fc5f3b6db [file]
type Value = String;
fn main() {
let f = |&Value::String(_)| (); //~ ERROR no associated function or constant named
let vec: Vec<Value> = Vec::new();
vec.last().map(f);
}