]>
Commit | Line | Data |
---|---|---|
60c5eb7d | 1 | // check-pass |
0731742a XL |
2 | |
3 | trait Foo { | |
4 | const BLAH: &'static str; | |
5 | } | |
6 | ||
7 | struct Placeholder; | |
8 | ||
9 | impl Foo for Placeholder { | |
10 | const BLAH: &'static str = "hi"; | |
11 | } | |
12 | ||
13 | fn foo(x: &str) { | |
14 | match x { | |
15 | <Placeholder as Foo>::BLAH => { } | |
16 | _ => { } | |
17 | } | |
18 | } | |
19 | ||
20 | fn main() {} |