]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2306/convert-id-const-with-gate.rs
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
[rust.git] / src / test / ui / rfc-2306 / convert-id-const-with-gate.rs
1 // This test should pass since 'identity' is const fn.
2
3 // build-pass (FIXME(62277): could be check-pass?)
4
5 fn main() {
6     const _FOO: u8 = ::std::convert::identity(42u8);
7 }