Files
rust/tests/ui/comptime/const_comptime.rs
2026-06-08 12:34:45 +02:00

8 lines
136 B
Rust

#![feature(rustc_attrs)]
#[rustc_comptime]
const fn foo() {}
//~^ ERROR a function cannot be both `comptime` and `const`
fn main() {}