blob: 1544d760a13397421b582b2b8e93bb6375a7519b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// run-pass
struct A;
impl A {
const fn banana() -> bool {
true
}
}
const ABANANA: bool = A::banana();
fn main() {
match true {
ABANANA => {},
_ => panic!("what?")
}
}
|