]> git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0049.rs
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / 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 fn main() {
12 }