]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2306/convert-id-const-with-gate.rs
Merge commit '6f50986667debbfc67776304a8ee23fe0158613f' into libgccjit-codegen
[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 }