1 // Regression test for issue #90870.
7 const fn f(a: &u8, b: &u8) -> bool {
9 //~^ ERROR: cannot call non-const operator in constant functions [E0015]
10 //~| HELP: consider dereferencing here
13 const fn g(a: &&&&i64, b: &&&&i64) -> bool {
15 //~^ ERROR: cannot call non-const operator in constant functions [E0015]
16 //~| HELP: consider dereferencing here
19 const fn h(mut a: &[u8], mut b: &[u8]) -> bool {
20 while let ([l, at @ ..], [r, bt @ ..]) = (a, b) {
22 //~^ ERROR: cannot call non-const operator in constant functions [E0015]
23 //~| HELP: consider dereferencing here
31 a.is_empty() && b.is_empty()