rust/tests/ui/inline-const/expr-unsafe-err.rs
Matthew Jasper 982b49494e Remove revisions for THIR unsafeck
This is to make the diff when stabilizing it easier to review.
2024-01-05 09:30:27 +00:00

12 lines
164 B
Rust

#![feature(inline_const)]
const unsafe fn require_unsafe() -> usize {
1
}
fn main() {
const {
require_unsafe();
//~^ ERROR [E0133]
}
}