mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00
13 lines
217 B
Rust
13 lines
217 B
Rust
// Regression test for #143523.
|
|
|
|
trait Trait {}
|
|
|
|
impl Trait for Vec<i32> {}
|
|
|
|
fn foo(_: impl Trait) {}
|
|
|
|
fn main() {
|
|
foo(&mut vec![1]);
|
|
//~^ ERROR the trait bound `&mut Vec<{integer}>: Trait` is not satisfied
|
|
}
|