]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/trait-static-method-generic-inference.rs
1 // Issue #3902. We are (at least currently) unable to infer `Self`
2 // based on `T`, even though there is only a single impl, because of
3 // the possibility of associated types and other things (basically: no
4 // constraints on `Self` here at all).
16 impl HasNew
<Foo
> for Foo
{
24 let _f
: base
::Foo
= base
::HasNew
::new();
25 //~^ ERROR type annotations needed