]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-42880.rs
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-42880.rs
1 type Value = String;
2
3 fn main() {
4     let f = |&Value::String(_)| (); //~ ERROR no associated item named
5
6     let vec: Vec<Value> = Vec::new();
7     vec.last().map(f);
8 }