rust/src/test/ui/error-codes/E0049.rs
2018-12-25 21:08:33 -07:00

12 lines
154 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
}
fn main() {
}