rust/tests/ui/issues/issue-42880.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
169 B
Rust
Raw Normal View History

type Value = String;
fn main() {
let f = |&Value::String(_)| (); //~ ERROR no associated item named
let vec: Vec<Value> = Vec::new();
vec.last().map(f);
}