2018-10-22 19:04:14 -05:00
|
|
|
// This test should pass since 'identity' is const fn.
|
2018-08-19 14:06:43 -05:00
|
|
|
|
2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2018-08-19 14:06:43 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
const _FOO: u8 = ::std::convert::identity(42u8);
|
|
|
|
}
|