]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-18906.rs
1 // build-pass (FIXME(62277): could be check-pass?)
3 // pretty-expanded FIXME #23616
5 pub trait Borrow
<Borrowed
: ?Sized
> {
6 fn borrow(&self) -> &Borrowed
;
9 impl<T
: Sized
> Borrow
<T
> for T
{
10 fn borrow(&self) -> &T { self }
14 fn foo(&self, other
: &Self);
17 fn bar
<K
, Q
>(k
: &K
, q
: &Q
) where K
: Borrow
<Q
>, Q
: Foo
{
24 // This caused a failure in #18906
25 fn bar
<Q
>(k
: &K
, q
: &Q
) where K
: Borrow
<Q
>, Q
: Foo
{