Sign in
fuchsia
/
third_party
/
rust
/
4ecd94e1215882efde5f003c0042bd72a5f8acb2
/
.
/
src
/
test
/
ui
/
issues
/
issue-14229.rs
blob: 477a2c6505337333f6217bedd182a4f4661b060d [
file
] [
log
] [
blame
]
// 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
();
}