Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
methods
/
method-ambig-two-traits-from-impls.rs
blob: 22bf840660536c7d489cc9e12b2850b15091a191 [
file
] [
log
] [
blame
]
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
}