2024-02-16 14:02:50 -06:00
|
|
|
//@ revisions: constant array
|
2022-11-21 06:40:27 -06:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
#![feature(explicit_tail_calls)]
|
|
|
|
|
|
|
|
#[cfg(constant)]
|
|
|
|
const _: () = {
|
|
|
|
become f(); //[constant]~ error: become statement outside of function body
|
|
|
|
};
|
|
|
|
|
|
|
|
#[cfg(array)]
|
|
|
|
struct Bad([(); become f()]); //[array]~ error: become statement outside of function body
|
|
|
|
|
|
|
|
fn f() {}
|
|
|
|
|
|
|
|
fn main() {}
|