2015-03-25 11:53:28 -05:00
|
|
|
struct Foo;
|
|
|
|
|
2015-04-24 23:58:40 -05:00
|
|
|
trait MyTrait {
|
2015-03-25 11:53:28 -05:00
|
|
|
fn trait_bar() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl MyTrait for Foo {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
match 0u32 {
|
|
|
|
<Foo as MyTrait>::trait_bar => {}
|
2020-03-04 21:03:15 -06:00
|
|
|
//~^ ERROR expected unit struct, unit variant or constant, found associated function
|
2015-03-25 11:53:28 -05:00
|
|
|
}
|
|
|
|
}
|