Files
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.

8 lines
308 B
Rust
Raw Normal View History

2023-01-13 13:27:40 +00:00
#[rustc_do_not_const_check]
//~^ ERROR use of an internal attribute [E0658]
//~| NOTE the `#[rustc_do_not_const_check]` attribute is an internal implementation detail that will never be stable
//~| NOTE `#[rustc_do_not_const_check]` skips const-check for this function's body
2023-01-13 13:27:40 +00:00
const fn foo() {}
fn main() {}