Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
methods
/
method-ambig-two-traits-from-impls.rs
blob: 22bf840660536c7d489cc9e12b2850b15091a191 [
file
] [
log
] [
blame
] [
edit
]
trait
A
{
fn
foo
(
self
);
}
trait
B
{
fn
foo
(
self
);
}
struct
AB
{}
impl
A
for
AB
{
fn
foo
(
self
)
{}
}
impl
B
for
AB
{
fn
foo
(
self
)
{}
}
fn
main
()
{
AB
{}.
foo
();
//~ ERROR E0034
}