]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/associated-types-in-ambiguous-context.rs
3 fn get(&self) -> <Self as Get
>::Value
;
6 fn get
<T
:Get
,U
:Get
>(x
: T
, y
: U
) -> Get
::Value {}
7 //~^ ERROR ambiguous associated type
11 fn grab(&self) -> Grab
::Value
;
12 //~^ ERROR ambiguous associated type
14 fn get(&self) -> Get
::Value
;
15 //~^ ERROR ambiguous associated type
20 trait Foo
where Foo
::Assoc
: Bar
{
21 //~^ ERROR ambiguous associated type
25 type X
= std
::ops
::Deref
::Target
;
26 //~^ ERROR ambiguous associated type