982b49494e
This is to make the diff when stabilizing it easier to review.
12 lines
164 B
Rust
12 lines
164 B
Rust
#![feature(inline_const)]
|
|
const unsafe fn require_unsafe() -> usize {
|
|
1
|
|
}
|
|
|
|
fn main() {
|
|
const {
|
|
require_unsafe();
|
|
//~^ ERROR [E0133]
|
|
}
|
|
}
|