On Tue, Mar 3, 2020 at 9:11 AM Nikita Popov wrote:
> Currently, when writing something like
>
> use T1, T2 {
> func as renamedFunc;
> }
>
> where both T1::func() and T2::func() exist, we silently allow this and just
> assume that it is referring to T1::func(). See https://3v4l.org
On Tue, Mar 3, 2020 at 4:06 PM Côme Chilliet <
come.chill...@fusiondirectory.org> wrote:
> Le mardi 3 mars 2020, 15:11:27 CET Nikita Popov a écrit :
> > As the error message indicates, the ambiguity is resolved by writing
> >
> > use T1, T2 {
> > T1::func as renamedFunc;
> > //
Le mardi 3 mars 2020, 15:11:27 CET Nikita Popov a écrit :
> As the error message indicates, the ambiguity is resolved by writing
>
> use T1, T2 {
> T1::func as renamedFunc;
> // or
> T2::func as renamedFunc;
> }
>
> depending on which of those you actually meant.