mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
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]
|
|
}
|
|
}
|