Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
refs/heads/main
/
.
/
tests
/
ui
/
traits
/
associated-item-unsatisfied-trait-bounds.rs
blob: 4fb4cd61ac5169203890acfa0b44aa7c3425fcb2 [
file
] [
edit
]
struct
Foo
;
trait
Bar
{}
trait
Baz
{}
trait
Bat
{
fn
bat
(&
self
);
}
impl
<
T
>
Bat
for
T where T
:
'
static
+
Bar
+
Baz
{
fn
bat
(&
self
)
{
println
!(
"generic bat"
);
}
}
pub
fn
main
()
{
Foo
::
bat
(());
//~ ERROR E0599
}