mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
16 lines
322 B
Rust
16 lines
322 B
Rust
#![feature(rustc_attrs)]
|
|
|
|
trait Foo<A> {
|
|
fn foo(self);
|
|
}
|
|
|
|
#[rustc_on_unimplemented = "an impl did not match: {A} {B} {C}"]
|
|
impl<A, B, C> Foo<A> for (A, B, C) {
|
|
fn foo(self) {}
|
|
}
|
|
|
|
fn main() {
|
|
Foo::<usize>::foo((1i32, 1i32, 1i32));
|
|
//~^ ERROR the trait bound `(i32, i32, i32): Foo<usize>` is not satisfied
|
|
}
|