Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
methods
/
method-resolvable-path-in-pattern.rs
blob: c05160792d360cb1b4b5dd19384255b5045730af [
file
] [
log
] [
blame
]
struct
Foo
;
trait
MyTrait
{
fn
trait_bar
()
{}
}
impl
MyTrait
for
Foo
{}
fn
main
()
{
match
0u32
{
<
Foo
as
MyTrait
>::
trait_bar
=>
{}
//~^ ERROR expected unit struct, unit variant or constant, found method `MyTrait::trait_bar`
}
}