blob: 0d04101a383070759b52fb682f70e1379e193cc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// revisions: stock gated
#![cfg_attr(gated, feature(const_trait_impl))]
const fn foo(input: &'static str) {
match input {
"a" => (), //[gated]~ ERROR can't compare `str` with `str` in const contexts
//~^ ERROR cannot match on `str` in constant functions
_ => (),
}
}
fn main() {}
|