rust/tests/ui/error-codes/E0049.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
316 B
Rust
Raw Normal View History

2016-05-19 12:00:43 +00:00
trait Foo {
fn foo<T: Default>(x: T) -> Self;
2016-05-19 12:00:43 +00:00
}
struct Bar;
impl Foo for Bar {
fn foo(x: bool) -> Self { Bar } //~ ERROR E0049
}
trait Fuzz {
fn fuzz<A: Default, B>(x: A, y: B) -> Self;
}
struct Baz;
impl Fuzz for Baz {
fn fuzz(x: bool, y: bool) -> Self { Baz } //~ ERROR E0049
}
2016-05-19 12:00:43 +00:00
fn main() {
}