Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-14229.rs
blob: eb6324da3b6edf80df68d82d71a084660b63f601 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
trait
Foo
:
Sized
{
fn
foo
(
self
)
{}
}
trait
Bar
:
Sized
{
fn
bar
(
self
)
{}
}
struct
S
;
impl
<
'l> Foo for &'
l S
{}
impl
<
T
:
Foo
>
Bar
for
T
{}
fn
main
()
{
let
s
=
S
;
s
.
foo
();
(&
s
).
bar
();
s
.
bar
();
}