rust/tests/ui/consts/gate-do-not-const-check.rs

6 lines
127 B
Rust
Raw Normal View History

2023-01-13 07:27:40 -06:00
#[rustc_do_not_const_check]
//~^ ERROR this is an internal attribute that will never be stable
const fn foo() {}
fn main() {}