Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
methods
/
method-resolvable-path-in-pattern.rs
blob: 2973800a4d43bea9a7832682eed2c525bc8aa7d1 [
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 associated function
}
}