Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
6d71251cf9e40326461f90f8ff9a7024706aea87
/
.
/
tests
/
ui
/
lint
/
issue-112489.rs
blob: 631816ca759672ee16866645e021acc33d0a252e [
file
] [
log
] [
blame
]
//@ check-pass
use
std
::
borrow
::
Borrow
;
struct
S
;
trait
T
:
Sized
{
fn
foo
(
self
)
{}
}
impl
T
for
S
{}
impl
T
for
&
S
{}
fn
main
()
{
let
s
=
S
;
s
.
borrow
().
foo
();
s
.
foo
();
}