Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
methods
/
method-resolvable-path-in-pattern.rs
blob: 1d373cfa6a7676dc5647cf6facbb91dd97dcefc7 [
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/variant or constant, found method `MyTrait::trait_bar`
}
}