mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
9 lines
201 B
Rust
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
|
|
}
|