mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-23 14:48:25 +00:00
15 lines
251 B
Rust
15 lines
251 B
Rust
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
|
|
}
|
|
}
|