]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-fn-stability-calls.rs
3 #![allow(unused_variables)]
4 // Test use of const fn from another crate without a feature gate.
6 // aux-build:const_fn_lib.rs
8 extern crate const_fn_lib
;
10 use const_fn_lib
::foo
;
12 static FOO
: usize = foo();
13 const BAR
: usize = foo();
15 macro_rules
! constant
{
16 ($n
:ident
: $t
:ty
= $v
:expr
) => {
26 let x
: [usize; foo()] = [42; foo()];