]> git.lizzy.rs Git - rust.git/blob - tests/ui/methods/method-resolvable-path-in-pattern.rs
Rollup merge of #106113 - krasimirgg:llvm-16-ext-tyid, r=nikic
[rust.git] / tests / ui / methods / method-resolvable-path-in-pattern.rs
1 struct Foo;
2
3 trait MyTrait {
4     fn trait_bar() {}
5 }
6
7 impl MyTrait for Foo {}
8
9 fn main() {
10     match 0u32 {
11         <Foo as MyTrait>::trait_bar => {}
12         //~^ ERROR expected unit struct, unit variant or constant, found associated function
13     }
14 }