1 error[E0599]: no associated item named `String` found for struct `String` in the current scope
2 --> $DIR/issue-42880.rs:4:22
4 LL | let f = |&Value::String(_)| ();
5 | ^^^^^^ associated item not found in `String`
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0599`.