mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 09:44:40 +00:00
8 lines
136 B
Rust
8 lines
136 B
Rust
#![feature(rustc_attrs)]
|
|
|
|
#[rustc_comptime]
|
|
const fn foo() {}
|
|
//~^ ERROR a function cannot be both `comptime` and `const`
|
|
|
|
fn main() {}
|