]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-57280.rs
Rollup merge of #60685 - dtolnay:spdx, r=nikomatsakis
[rust.git] / src / test / ui / nll / issue-57280.rs
1 #![feature(nll)]
2
3 // compile-pass
4
5 trait Foo {
6     const BLAH: &'static str;
7 }
8
9 struct Placeholder;
10
11 impl Foo for Placeholder {
12     const BLAH: &'static str = "hi";
13 }
14
15 fn foo(x: &str) {
16     match x {
17         <Placeholder as Foo>::BLAH => { }
18         _ => { }
19     }
20 }
21
22 fn main() {}