Files
rust/tests/ui/suggestions/dont-suggest-borrow-whole-call-issue-155088.rs
T

9 lines
201 B
Rust

use std::borrow::Borrow;
fn foo(_v: impl IntoIterator<Item = impl Borrow<str>>) {}
fn main() {
foo(&[String::from("a")]);
//~^ ERROR the trait bound `&String: Borrow<str>` is not satisfied
}