rust/tests/ui/error-codes/E0049.rs
2023-01-11 09:32:08 +00:00

23 lines
316 B
Rust

trait Foo {
fn foo<T: Default>(x: T) -> Self;
}
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
}
fn main() {
}