Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
span
/
issue-35987.rs
blob: 3a6e6ffe249106d83a6470a71ebd257c9cfccaff [
file
] [
log
] [
blame
]
struct
Foo
<
T
:
Clone
>(
T
);
use
std
::
ops
::
Add
;
impl
<
T
:
Clone
,
Add
>
Add
for
Foo
<
T
>
{
//~^ ERROR expected trait, found type parameter
type
Output
=
usize
;
fn
add
(
self
,
rhs
:
Self
)
->
Self
::
Output
{
unimplemented
!();
}
}
fn
main
()
{}