Sign in
rust
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
consts
/
const-eval
/
issue-85907.rs
blob: a5a961658c76c97e895af20884bc7c4fa0a53b46 [
file
] [
log
] [
blame
] [
edit
]
//@ edition:2015..2021
const
fn
hey
()
->
usize
{
panic
!(
123
);
//~ ERROR argument to `panic!()` in a const context must have type `&str`
}
fn
main
()
{
let
_
:
[
u8
;
hey
()]
=
todo
!();
}