2019-09-20 18:39:13 +02:00
|
|
|
// run-pass
|
2019-09-21 16:09:38 +02:00
|
|
|
// compile-flags: -Zunleash-the-miri-inside-of-you
|
|
|
|
#![allow(unused)]
|
2019-09-20 18:39:13 +02:00
|
|
|
|
|
|
|
fn double(x: usize) -> usize { x * 2 }
|
|
|
|
const X: fn(usize) -> usize = double;
|
|
|
|
|
2020-05-03 14:23:08 +02:00
|
|
|
const fn bar(x: usize) -> usize {
|
2019-09-21 16:09:38 +02:00
|
|
|
X(x) // FIXME: this should error someday
|
2019-09-20 18:39:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|