Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
generics-mismatch.rs
blob: 3ea31cc934798a84a63a3251af1e07d00449f13b [
file
] [
log
] [
blame
] [
edit
]
struct
U
;
trait
Foo
{
fn
bar
(&
self
)
->
impl
Sized
;
}
impl
Foo
for
U
{
fn
bar
<
T
>(&
self
)
{}
//~^ ERROR method `bar` has 1 type parameter but its trait declaration has 0 type parameters
}
fn
main
()
{
U
.
bar
();
}