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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
127 B
Rust
Raw Normal View History

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