]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-meth-pattern.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / consts / const-meth-pattern.rs
CommitLineData
b7449926
XL
1// run-pass
2
a7813a04 3struct A;
85aaf69f 4
a7813a04
XL
5impl A {
6 const fn banana() -> bool {
7 true
b039eaaf 8 }
54a0048b 9}
a7813a04
XL
10
11const ABANANA: bool = A::banana();
12
13fn main() {
14 match true {
15 ABANANA => {},
16 _ => panic!("what?")
d9579d0f 17 }
c34b1796 18}