summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0049.rs
blob: c141f8a882820f05ada27e1c02bb711c6ebe4cae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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() {
}