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