Sign in
android
/
toolchain
/
rustc
/
refs/heads/upstream-master
/
.
/
src
/
test
/
ui
/
type
/
type-check
/
issue-40294.rs
blob: 7e6429ccfbe30fccfbab2826b38f267869e4f454 [
file
] [
log
] [
blame
]
trait
Foo
:
Sized
{
fn
foo
(
self
);
}
fn
foo
<
'a,'
b
,
T
>(
x
:
&
'a T, y: &'
b T
)
//~ ERROR type annotations needed
where
&
'
a T
:
Foo
,
&
'
b T
:
Foo
{
x
.
foo
();
y
.
foo
();
}
fn
main
()
{
}