Sign in
rust
/
rust
/
e8a00a7621606f8c4a34b679cefaaa6aecf2442e
/
.
/
tests
/
ui
/
suggestions
/
restrict-type-not-param.rs
blob: 60f5ba45c268d1ae6463509a16cc32c8b4f0e5e1 [
file
] [
log
] [
blame
]
use
std
::
ops
::
Add
;
struct
Wrapper
<
T
>(
T
);
trait
Foo
{}
fn
qux
<
T
>(
a
:
Wrapper
<
T
>,
b
:
T
)
->
T
{
a
+
b
//~^ ERROR cannot add `T` to `Wrapper<T>`
}
fn
main
()
{}