rust/tests/ui/consts/gate-do-not-const-check.rs
2023-01-31 17:26:06 +00:00

6 lines
127 B
Rust

#[rustc_do_not_const_check]
//~^ ERROR this is an internal attribute that will never be stable
const fn foo() {}
fn main() {}