Sign in
fuchsia
/
third_party
/
rust
/
4ecd94e1215882efde5f003c0042bd72a5f8acb2
/
.
/
src
/
test
/
ui
/
rustc-args-required-const2.rs
blob: 5feeca6f530e8e5bcf9a6b512ea82213963f97d5 [
file
] [
log
] [
blame
]
#![
feature
(
rustc_attrs
,
const_fn
)]
#[
rustc_args_required_const
(
0
)]
fn
foo
(
_a
:
i32
)
{
}
fn
main
()
{
let
a
=
foo
;
//~ ERROR: this function can only be invoked directly
a
(
2
);
}