]> git.lizzy.rs Git - rust.git/blob - tests/ui/error-codes/E0049.rs
Rollup merge of #106940 - oli-obk:tait_error, r=compiler-errors
[rust.git] / tests / ui / error-codes / E0049.rs
1 trait Foo {
2     fn foo<T: Default>(x: T) -> Self;
3 }
4
5 struct Bar;
6
7 impl Foo for Bar {
8     fn foo(x: bool) -> Self { Bar } //~ ERROR E0049
9 }
10
11 trait Fuzz {
12     fn fuzz<A: Default, B>(x: A, y: B) -> Self;
13 }
14
15 struct Baz;
16
17 impl Fuzz for Baz {
18     fn fuzz(x: bool, y: bool) -> Self { Baz } //~ ERROR E0049
19 }
20
21 fn main() {
22 }