summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-42880.rs
blob: b61ba80e27abdb24abf38b2fada4df8b0f0958ba (plain)
1
2
3
4
5
6
7
8
type Value = String;

fn main() {
    let f = |&Value::String(_)| (); //~ ERROR no associated item named

    let vec: Vec<Value> = Vec::new();
    vec.last().map(f);
}